Commit 1c56edd0 by Kartik Visweswaran

Update Alert.php

parent 8fc77afc
...@@ -36,10 +36,10 @@ class Alert extends Widget ...@@ -36,10 +36,10 @@ class Alert extends Widget
if (in_array($type, $this->allowedTypes)) { if (in_array($type, $this->allowedTypes)) {
$class = ($type === 'error') ? 'alert-danger' : 'alert-' . $type; $class = ($type === 'error') ? 'alert-danger' : 'alert-' . $type;
Html::addCssClass($this->options, $class); Html::addCssClass($this->options, $class);
echo BsAlert::widget(array( echo BsAlert::widget([
'body' => $message, 'body' => $message,
'options' => $this->options 'options' => $this->options
)); ]);
$session->removeFlash($type); $session->removeFlash($type);
$this->_doNotRender = false; $this->_doNotRender = false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment