Enhance - More messages::add updates (#2662)

convert more messages over to messsagse::add
This commit is contained in:
Mafoo
2017-06-09 20:13:40 -06:00
committed by FusionPBX
parent bc26ecf6ae
commit 3cab4401cf
153 changed files with 249 additions and 293 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -109,7 +109,7 @@
}
//redirect the browser
$_SESSION["message"] = $text['message-delete'];
messages::add($text['message-delete']);
header("Location: sip_profiles.php");
return;
+3 -3
View File
@@ -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")