Bug 33880 - $wgUsersNotifiedOnAllChanges should not send e-mail to user who made...
[lhc/web/wiklou.git] / includes / UserMailer.php
index 20e77b8..ba67efc 100644 (file)
@@ -512,6 +512,10 @@ class EmailNotification {
 
                global $wgUsersNotifiedOnAllChanges;
                foreach ( $wgUsersNotifiedOnAllChanges as $name ) {
+                       if ( $editor->getName() == $name ) {
+                               // No point notifying the user that actually made the change!
+                               continue;
+                       }
                        $user = User::newFromName( $name );
                        $this->compose( $user );
                }