From: <var...@us...> - 2009-09-16 14:45:43
|
Revision: 7134 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7134&view=rev Author: vargenau Date: 2009-09-16 14:45:35 +0000 (Wed, 16 Sep 2009) Log Message: ----------- Removed comment; whitespace Modified Paths: -------------- trunk/lib/MailNotify.php Modified: trunk/lib/MailNotify.php =================================================================== --- trunk/lib/MailNotify.php 2009-09-16 14:15:11 UTC (rev 7133) +++ trunk/lib/MailNotify.php 2009-09-16 14:45:35 UTC (rev 7134) @@ -287,7 +287,6 @@ $content .= $wikitext; } $editedby = sprintf(_("Edited by: %s"), $this->from); - //$editedby = sprintf(_("Edited by: %s"), $meta['author']); $this->sendMail($subject, $editedby."\n".$difflink."\n\n".$content); } @@ -334,19 +333,19 @@ function onDeletePage (&$wikidb, $pagename) { $result = true; - /* Generate notification emails? */ - if (! $wikidb->isWikiPage($pagename) and !isa($GLOBALS['request'],'MockRequest')) { - $notify = $wikidb->get('notify'); - if (!empty($notify) and is_array($notify)) { - //TODO: deferr it (quite a massive load if you remove some pages). - $this->getPageChangeEmails($notify); - if (!empty($this->emails)) { + /* Generate notification emails? */ + if (! $wikidb->isWikiPage($pagename) and !isa($GLOBALS['request'],'MockRequest')) { + $notify = $wikidb->get('notify'); + if (!empty($notify) and is_array($notify)) { + //TODO: deferr it (quite a massive load if you remove some pages). + $this->getPageChangeEmails($notify); + if (!empty($this->emails)) { $subject = sprintf(_("User %s removed page %s"), $this->from, $pagename); $result = $this->sendMail($subject, $subject."\n\n"); - } - } - } - return $result; + } + } + } + return $result; } function onRenamePage (&$wikidb, $oldpage, $new_pagename) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |