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

convert more messages over to messsagse::add
This commit is contained in:
Mafoo
2017-06-10 03:13:40 +01:00
committed by FusionPBX
parent bc26ecf6ae
commit 3cab4401cf
153 changed files with 249 additions and 293 deletions

View File

@@ -583,7 +583,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//redirect the browser
if ($action == "update") {
$_SESSION["message"] = $text['message-update'];
messages::add($text['message-update']);
if (!permission_exists('domain_add')) { //admin, updating own domain
header("Location: domain_edit.php");
}
@@ -592,7 +592,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
}
}
if ($action == "add") {
$_SESSION["message"] = $text['message-add'];
messages::add($text['message-add']);
header("Location: domains.php");
}
return;