From 379166077d5fab6301fa82917cf441692e606d6b Mon Sep 17 00:00:00 2001 From: vargenau Date: Wed, 16 Sep 2009 14:45:35 +0000 Subject: [PATCH] Removed comment; whitespace git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@7134 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/MailNotify.php | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/lib/MailNotify.php b/lib/MailNotify.php index e00bdb717..d89ec1185 100644 --- a/lib/MailNotify.php +++ b/lib/MailNotify.php @@ -287,7 +287,6 @@ class MailNotify { $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 @@ class MailNotify { 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) { -- 2.45.0