mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-03-14 20:48:48 +00:00
Change messages class to message
This commit is contained in:
@@ -100,7 +100,7 @@
|
||||
|
||||
//redirect the user to the login page
|
||||
$target_path = ($_REQUEST["path"] != '') ? $_REQUEST["path"] : $_SERVER["PHP_SELF"];
|
||||
messages::add($text['message-invalid_credentials'], 'negative');
|
||||
message::add($text['message-invalid_credentials'], 'negative');
|
||||
header("Location: ".PROJECT_PATH."/login.php?path=".urlencode($target_path));
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -1029,7 +1029,7 @@ function format_string ($format, $data) {
|
||||
$msg_errors[] = '1+ '.$text['label-special_characters'];
|
||||
}
|
||||
if (is_array($msg_errors) && sizeof($msg_errors) > 0) {
|
||||
messages::add($_SESSION["message"] = $text['message-password_requirements'].': '.implode(', ', $msg_errors), 'negative', 6000);
|
||||
message::add($_SESSION["message"] = $text['message-password_requirements'].': '.implode(', ', $msg_errors), 'negative', 6000);
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user