summaryrefslogtreecommitdiff
path: root/inc/html.php
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2013-04-01 16:55:40 +0100
committerChristopher Smith <chris@jalakai.co.uk>2013-04-01 16:55:40 +0100
commitd3bae4781025502fdfb729854e39f8b2072b8a37 (patch)
tree49412e48ab52f56744870f85d255b41709a74a43 /inc/html.php
parente71b0ef705b86bb653fcae43e6845acbe6fd7fd2 (diff)
downloadrpg-d3bae4781025502fdfb729854e39f8b2072b8a37.tar.gz
rpg-d3bae4781025502fdfb729854e39f8b2072b8a37.tar.bz2
add capability to restrict recipients of dokuwiki 'msg' alerts. This is useful where message is added to the queue before authentication is initialized
Diffstat (limited to 'inc/html.php')
-rw-r--r--inc/html.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/inc/html.php b/inc/html.php
index 59415f7da..09d1387bd 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -1297,9 +1297,11 @@ function html_msgarea(){
foreach($MSG as $msg){
$hash = md5($msg['msg']);
if(isset($shown[$hash])) continue; // skip double messages
- print '<div class="'.$msg['lvl'].'">';
- print $msg['msg'];
- print '</div>';
+ if(info_msg_canshow($msg)){
+ print '<div class="'.$msg['lvl'].'">';
+ print $msg['msg'];
+ print '</div>';
+ }
$shown[$hash] = 1;
}