From: <sy...@us...> - 2005-06-27 15:16:13
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5124 Modified Files: comments.php Log Message: new wiki comments mail notification Index: comments.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/comments.php,v retrieving revision 1.49 retrieving revision 1.50 diff -u -d -r1.49 -r1.50 --- comments.php 18 May 2005 10:58:51 -0000 1.49 +++ comments.php 27 Jun 2005 15:15:34 -0000 1.50 @@ -281,6 +281,19 @@ include_once ('lib/webmail/tikimaillib.php'); $nots = $commentslib->get_event_watches('wiki_page_changed', $_REQUEST["page"]); $isBuilt = false; + global $notificationlib; include_once("lib/notifications/notificationlib.php"); + $emails = $notificationlib->get_mail_events('wiki_comment_changes', $_REQUEST["page"]); + foreach ($emails as $email) { + $already = false; + foreach ($nots as $not) { + if ($not['email'] == $email) { + $already = true; + break; + } + } + if (!$already) + $nots[] = array("user"=>"", "hash"=>"", "email"=>$email); + } foreach ($nots as $not) { if ($wiki_watch_editor != 'y' && $not['user'] == $user) break; |