|
@@ -53,17 +53,17 @@ |
|
|
block discarded – undo |
|
53
|
53
|
|
|
54
|
54
|
$session = \Yii::$app->getSession(); |
|
55
|
55
|
$flashes = $session->getAllFlashes(); |
|
56
|
|
- $appendCss = isset($this->options['class']) ? ' ' . $this->options['class'] : ''; |
|
|
56
|
+ $appendCss = isset($this->options['class']) ? ' '.$this->options['class'] : ''; |
|
57
|
57
|
|
|
58
|
58
|
foreach ($flashes as $type => $data) { |
|
59
|
59
|
if (isset($this->alertTypes[$type])) { |
|
60
|
60
|
$data = (array) $data; |
|
61
|
61
|
foreach ($data as $message) { |
|
62
|
62
|
/* initialize css class for each alert box */ |
|
63
|
|
- $this->options['class'] = $this->alertTypes[$type] . $appendCss; |
|
|
63
|
+ $this->options['class'] = $this->alertTypes[$type].$appendCss; |
|
64
|
64
|
|
|
65
|
65
|
/* assign unique id to each alert box */ |
|
66
|
|
- $this->options['id'] = $this->getId() . '-' . $type; |
|
|
66
|
+ $this->options['id'] = $this->getId().'-'.$type; |
|
67
|
67
|
|
|
68
|
68
|
echo \yii\bootstrap\Alert::widget([ |
|
69
|
69
|
'body' => $message, |
Please login to merge, or discard this patch.