diff --git a/apps/advanced/frontend/widgets/Alert.php b/apps/advanced/frontend/widgets/Alert.php index a1f76df..29b2e5a 100644 --- a/apps/advanced/frontend/widgets/Alert.php +++ b/apps/advanced/frontend/widgets/Alert.php @@ -44,12 +44,13 @@ class Alert extends Widget foreach ($flashes as $type => $message) { if (in_array($type, $this->allowedTypes)) { $class = ($type === 'error') ? 'alert-danger' : 'alert-' . $type; - $this->options['class'] = $class; + Html::addCssClass($this->options, $class); echo BsAlert::widget([ 'body' => $message, 'closeButton' => $this->closeButton, 'options' => $this->options ]); + Html::removeCssClass($this->options, $class); $session->removeFlash($type); $this->_doNotRender = false; }