r34993 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r34992‎ | r34993 | r34994 >
Date:22:23, 17 May 2008
Author:aaron
Status:old
Tags:
Comment:
Don't notify users of their own edits at least
Modified paths:
  • /trunk/phase3/includes/RecentChange.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/RecentChange.php
@@ -222,10 +222,9 @@
223223 }
224224
225225 # E-mail notifications
226 - global $wgUseEnotif;
227 - if( $wgUseEnotif ) {
228 - # this would be better as an extension hook
229 - global $wgUser;
 226+ global $wgUseEnotif, $wgUser;
 227+ if( $wgUseEnotif && $this->mAttribs['rc_user'] != $wgUser->getID() ) {
 228+ # FIXME: this would be better as an extension hook
230229 $enotif = new EmailNotification;
231230 $title = Title::makeTitle( $this->mAttribs['rc_namespace'], $this->mAttribs['rc_title'] );
232231 $enotif->notifyOnPageChange( $wgUser, $title,

Status & tagging log