From: <var...@us...> - 2009-09-16 09:12:08
|
Revision: 7127 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7127&view=rev Author: vargenau Date: 2009-09-16 09:12:00 +0000 (Wed, 16 Sep 2009) Log Message: ----------- No need to send empty page content; improved subject Modified Paths: -------------- trunk/lib/MailNotify.php Modified: trunk/lib/MailNotify.php =================================================================== --- trunk/lib/MailNotify.php 2009-09-16 09:04:10 UTC (rev 7126) +++ trunk/lib/MailNotify.php 2009-09-16 09:12:00 UTC (rev 7127) @@ -343,26 +343,11 @@ //TODO: deferr it (quite a massive load if you remove some pages). $this->getPageChangeEmails($notify); if (!empty($this->emails)) { - $editedby = sprintf(_("Removed by: %s"), $this->from); // Todo: host_id - //$emails = join(',', $this->emails); - $subject = sprintf(_("Page removed %s"), $pagename); - $page = $wikidb->getPage($pagename); - $rev = $page->getCurrentRevision(true); - $content = $rev->getPackedContent(); - $result = $this->sendMail($subject, - $editedby."\n"."Deleted $pagename"."\n\n".$content); + $subject = sprintf(_("User %s removed page %s"), $this->from, $pagename); + $result = $this->sendMail($subject, $subject."\n\n"); } } } - //How to create a RecentChanges entry with explaining summary? Dynamically - /* - $page = $this->getPage($pagename); - $current = $page->getCurrentRevision(); - $meta = $current->_data; - $version = $current->getVersion(); - $meta['summary'] = _("removed"); - $page->save($current->getPackedContent(), $version + 1, $meta); - */ return $result; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |