Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Shubin <aleksandrs.subins@zabbix.com>2020-07-14 17:55:24 +0300
committerAlexander Shubin <aleksandrs.subins@zabbix.com>2020-07-14 17:55:33 +0300
commit2676c3fd547c6edf47b5edc15fffaff7c35d0c21 (patch)
treeb8d4dea3d4e7e2dd561089a4a4a965082b79291d /ui/app/controllers/CControllerTrigDisplayUpdate.php
parent65270afbe022cbdd38733bfbcce40f62dff7c77d (diff)
..F....... [ZBXNEXT-5965] fixed messages helper
Diffstat (limited to 'ui/app/controllers/CControllerTrigDisplayUpdate.php')
-rw-r--r--ui/app/controllers/CControllerTrigDisplayUpdate.php6
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());
}