From fae8084524984c871afd9ecea9568110222419b8 Mon Sep 17 00:00:00 2001 From: Roman Revin Date: Wed, 21 Aug 2013 11:48:01 +0400 Subject: [PATCH] Update alert widget --- apps/advanced/frontend/widgets/Alert.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/advanced/frontend/widgets/Alert.php b/apps/advanced/frontend/widgets/Alert.php index 0a32ca6..20f3372 100644 --- a/apps/advanced/frontend/widgets/Alert.php +++ b/apps/advanced/frontend/widgets/Alert.php @@ -24,13 +24,13 @@ class Alert extends \yii\bootstrap\Alert public function init() { if ($this->body = \Yii::$app->getSession()->getFlash('error')) { - Html::addCssClass($this->options, 'alert-error'); + Html::addCssClass($this->options, 'alert-danger'); } elseif ($this->body = \Yii::$app->getSession()->getFlash('success')) { Html::addCssClass($this->options, 'alert-success'); } elseif ($this->body = \Yii::$app->getSession()->getFlash('info')) { Html::addCssClass($this->options, 'alert-info'); } elseif ($this->body = \Yii::$app->getSession()->getFlash('warning')) { - + Html::addCssClass($this->options, 'alert-warning'); } else { $this->_doNotRender = true; return;