Browse Source

Update Alert.php

tags/2.0.0-beta
Kartik Visweswaran 11 years ago
parent
commit
1c56edd000
  1. 4
      apps/advanced/frontend/widgets/Alert.php

4
apps/advanced/frontend/widgets/Alert.php

@ -36,10 +36,10 @@ class Alert extends Widget
if (in_array($type, $this->allowedTypes)) {
$class = ($type === 'error') ? 'alert-danger' : 'alert-' . $type;
Html::addCssClass($this->options, $class);
echo BsAlert::widget(array(
echo BsAlert::widget([
'body' => $message,
'options' => $this->options
));
]);
$session->removeFlash($type);
$this->_doNotRender = false;
}

Loading…
Cancel
Save