From: Aaron Schulz Date: Sat, 17 May 2008 22:23:56 +0000 (+0000) Subject: Don't notify users of their own edits at least X-Git-Tag: 1.31.0-rc.0~47567 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28?a=commitdiff_plain;h=cbd7cc3d4749dbecb6b78609bc73e7f6a6c5901a;p=lhc%2Fweb%2Fwiklou.git Don't notify users of their own edits at least --- diff --git a/includes/RecentChange.php b/includes/RecentChange.php index 19f39ddfbc..e7ef606b21 100644 --- a/includes/RecentChange.php +++ b/includes/RecentChange.php @@ -222,10 +222,9 @@ class RecentChange } # E-mail notifications - global $wgUseEnotif; - if( $wgUseEnotif ) { - # this would be better as an extension hook - global $wgUser; + global $wgUseEnotif, $wgUser; + if( $wgUseEnotif && $this->mAttribs['rc_user'] != $wgUser->getID() ) { + # FIXME: this would be better as an extension hook $enotif = new EmailNotification; $title = Title::makeTitle( $this->mAttribs['rc_namespace'], $this->mAttribs['rc_title'] ); $enotif->notifyOnPageChange( $wgUser, $title,