Enhance - More messages::add updates (#2662)
convert more messages over to messsagse::add
This commit is contained in:
@@ -112,7 +112,7 @@
|
||||
$cache->delete("dialplan:".$destination_context);
|
||||
|
||||
//redirect the user
|
||||
$_SESSION["message"] = $text['message-delete'];
|
||||
messages::add($text['message-delete']);
|
||||
header("Location: destinations.php");
|
||||
return;
|
||||
|
||||
|
||||
@@ -412,10 +412,10 @@
|
||||
|
||||
//redirect the user
|
||||
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: destination_edit.php?id=".$destination_uuid);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user