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
+5 -14
View File
@@ -279,20 +279,11 @@
}
//set the message
if (!isset($_SESSION['message'])) {
//set the message
if ($action == "add") {
//save the message to a session variable
$_SESSION['message'] = $text['message-add'];
}
if ($action == "update") {
//save the message to a session variable
$_SESSION['message'] = $text['message-update'];
}
//redirect the browser
header("Location: /core/user_settings/user_dashboard.php");
exit;
}
messages::add($text["message-$action"]);
//redirect the browser
header("Location: /core/user_settings/user_dashboard.php");
exit;
} //if ($_POST["persistformvar"] != "true")
} //(count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0)