diff options
author | Alexander Shubin <aleksandrs.subins@zabbix.com> | 2020-07-14 17:55:24 +0300 |
---|---|---|
committer | Alexander Shubin <aleksandrs.subins@zabbix.com> | 2020-07-14 17:55:33 +0300 |
commit | 2676c3fd547c6edf47b5edc15fffaff7c35d0c21 (patch) | |
tree | b8d4dea3d4e7e2dd561089a4a4a965082b79291d /ui/app/controllers/CControllerTrigDisplayUpdate.php | |
parent | 65270afbe022cbdd38733bfbcce40f62dff7c77d (diff) |
..F....... [ZBXNEXT-5965] fixed messages helper
Diffstat (limited to 'ui/app/controllers/CControllerTrigDisplayUpdate.php')
-rw-r--r-- | ui/app/controllers/CControllerTrigDisplayUpdate.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/app/controllers/CControllerTrigDisplayUpdate.php b/ui/app/controllers/CControllerTrigDisplayUpdate.php index b391f6ff665..40821ecad76 100644 --- a/ui/app/controllers/CControllerTrigDisplayUpdate.php +++ b/ui/app/controllers/CControllerTrigDisplayUpdate.php @@ -44,7 +44,7 @@ class CControllerTrigDisplayUpdate extends CController { ); $response->setFormData($this->getInputAll()); - CMessages::addError(_('Cannot update configuration')); + CMessageHelper::setErrorTitle(_('Cannot update configuration')); $this->setResponse($response); } @@ -83,10 +83,10 @@ class CControllerTrigDisplayUpdate extends CController { $result = DBend($result); if ($result) { - CMessages::addSuccess(_('Configuration updated')); + CMessageHelper::setSuccessTitle(_('Configuration updated')); } else { - CMessages::addError(_('Cannot update configuration')); + CMessageHelper::setErrorTitle(_('Cannot update configuration')); $response->setFormData($this->getInputAll()); } |