Enhance - More messages::add updates (#2662)
convert more messages over to messsagse::add
This commit is contained in:
@@ -161,7 +161,7 @@
|
||||
$_SESSION["reload_xml"] = true;
|
||||
|
||||
//redirect the user
|
||||
$_SESSION["message"] = $text['message-copy'];
|
||||
messages::add($text['message-copy']);
|
||||
header("Location: ".PROJECT_PATH."/app/sip_profiles/sip_profiles.php");
|
||||
return;
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
}
|
||||
|
||||
//redirect the browser
|
||||
$_SESSION["message"] = $text['message-delete'];
|
||||
messages::add($text['message-delete']);
|
||||
header("Location: sip_profiles.php");
|
||||
return;
|
||||
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
$cache->delete("configuration:sofia.conf:".$sip_profile_hostname);
|
||||
|
||||
//redirect the browser
|
||||
$_SESSION["message"] = $text['message-update'];
|
||||
messages::add($text['message-update']);
|
||||
header("Location: sip_profiles.php");
|
||||
|
||||
//save the sip profile xml
|
||||
@@ -172,10 +172,10 @@
|
||||
//redirect the user
|
||||
if (isset($action)) {
|
||||
if ($action == "add") {
|
||||
$_SESSION["message"] = $text['message-add'];
|
||||
messages::add($text['message-add']);
|
||||
}
|
||||
if ($action == "update") {
|
||||
$_SESSION["message"] = $text['message-update'];
|
||||
messages::add($text['message-update']);
|
||||
}
|
||||
header('Location: sip_profile_edit.php?id='.$sip_profile_uuid);
|
||||
return;
|
||||
|
||||
@@ -59,7 +59,7 @@ if (strlen($id)>0) {
|
||||
}
|
||||
|
||||
//redirect the browser
|
||||
$_SESSION["message"] = $text['message-delete'];
|
||||
messages::add($text['message-delete']);
|
||||
header("Location: sip_profile_edit.php?id=".$sip_profile_uuid);
|
||||
return;
|
||||
|
||||
|
||||
@@ -116,7 +116,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
$_SESSION["reload_xml"] = true;
|
||||
|
||||
//redirect the browser
|
||||
$_SESSION["message"] = $text['message-add'];
|
||||
messages::add($text['message-add']);
|
||||
header("Location: sip_profile_edit.php?id=".$sip_profile_uuid);
|
||||
return;
|
||||
} //if ($action == "add")
|
||||
@@ -140,7 +140,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
$_SESSION["reload_xml"] = true;
|
||||
|
||||
//redirect the browser
|
||||
$_SESSION["message"] = $text['message-update'];
|
||||
messages::add($text['message-update']);
|
||||
header("Location: sip_profile_edit.php?id=".$sip_profile_uuid);
|
||||
return;
|
||||
} //if ($action == "update")
|
||||
|
||||
Reference in New Issue
Block a user