Skip to content

Commit 7199e40

Browse files
committed
Output error/success message directly to allow html content in messages
1 parent 605a70f commit 7199e40

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

admin/template/notifications.tpl

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@error|before = <?php
44
if (isset($this->errors) && is_array($this->errors)) foreach($this->errors as $message) {?>
55
6-
@error [data-v-notification-text] = $message
6+
@error [data-v-notification-text] = <?php echo $message;?>
77
88
@error|after = <?php
99
}
@@ -13,7 +13,7 @@ if (isset($this->errors) && is_array($this->errors)) foreach($this->errors as $m
1313
@success|before = <?php
1414
if (isset($this->success) && is_array($this->success)) foreach($this->success as $message) {?>
1515
16-
@success [data-v-notification-text] = $message
16+
@success [data-v-notification-text] = <?php echo $message;?>
1717
1818
@success|after = <?php
1919
}
@@ -23,7 +23,7 @@ if (isset($this->success) && is_array($this->success)) foreach($this->success as
2323
@warning|before = <?php
2424
if (isset($this->warning) && is_array($this->warning)) foreach($this->warning as $message) {?>
2525
26-
@warning [data-v-notification-text] = $message
26+
@warning [data-v-notification-text] = <?php echo $message;?>
2727
2828
@warning|after = <?php
2929
}
@@ -33,7 +33,7 @@ if (isset($this->warning) && is_array($this->warning)) foreach($this->warning as
3333
@info|before = <?php
3434
if (isset($this->info) && is_array($this->info)) foreach($this->info as $message) {?>
3535
36-
@info [data-v-notification-text] = $message
36+
@info [data-v-notification-text] = <?php echo $message;?>
3737
3838
@info|after = <?php
3939
}
@@ -43,7 +43,7 @@ if (isset($this->info) && is_array($this->info)) foreach($this->info as $message
4343
@message|before = <?php
4444
if (isset($this->message) && is_array($this->message)) foreach($this->message as $message) {?>
4545
46-
@message [data-v-notification-text] = $message
46+
@message [data-v-notification-text] = <?php echo $message;?>
4747
4848
@message|after = <?php
4949
}

0 commit comments

Comments
 (0)