Index: trunk/phase3/includes/RecentChange.php |
— | — | @@ -222,10 +222,9 @@ |
223 | 223 | } |
224 | 224 | |
225 | 225 | # 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 |
230 | 229 | $enotif = new EmailNotification; |
231 | 230 | $title = Title::makeTitle( $this->mAttribs['rc_namespace'], $this->mAttribs['rc_title'] ); |
232 | 231 | $enotif->notifyOnPageChange( $wgUser, $title, |