From: <var...@us...> - 2009-06-04 16:49:57
|
Revision: 6897 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6897&view=rev Author: vargenau Date: 2009-06-04 16:49:55 +0000 (Thu, 04 Jun 2009) Log Message: ----------- Do not send if modification is from Gforge admin Modified Paths: -------------- trunk/lib/MailNotify.php Modified: trunk/lib/MailNotify.php =================================================================== --- trunk/lib/MailNotify.php 2009-06-04 16:44:46 UTC (rev 6896) +++ trunk/lib/MailNotify.php 2009-06-04 16:49:55 UTC (rev 6897) @@ -155,6 +155,12 @@ $silent = true; $emails = $this->emails; $from = $this->from; + // Do not send if modification is from Gforge admin + if (defined('GFORGE') and GFORGE) { + if ($from == ADMIN_USER) { + return; + } + } if (!$notice) $notice = _("PageChange Notification of %s"); $ok = mail(($to = array_shift($emails)), "[".WIKI_NAME."] ".$subject, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |