From d3bae4781025502fdfb729854e39f8b2072b8a37 Mon Sep 17 00:00:00 2001 From: Christopher Smith Date: Mon, 1 Apr 2013 16:55:40 +0100 Subject: add capability to restrict recipients of dokuwiki 'msg' alerts. This is useful where message is added to the queue before authentication is initialized --- inc/html.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'inc/html.php') 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 '
'; - print $msg['msg']; - print '
'; + if(info_msg_canshow($msg)){ + print '
'; + print $msg['msg']; + print '
'; + } $shown[$hash] = 1; } -- cgit v1.2.3