Bug 33880 - $wgUsersNotifiedOnAllChanges should not send e-mail to user who made...
authorSam Reed <reedy@users.mediawiki.org>
Mon, 23 Jan 2012 15:04:22 +0000 (15:04 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Mon, 23 Jan 2012 15:04:22 +0000 (15:04 +0000)
RELEASE-NOTES-1.19
includes/UserMailer.php

index 0150d35..1a2eeb3 100644 (file)
@@ -231,6 +231,8 @@ production.
 * (bug 33819) Display file sizes in appropriate units.
 * (bug 32948) {{REVISIONID}} and related variables are no longer blank after doing
   a null edit.
+* (bug 33880) $wgUsersNotifiedOnAllChanges should not send e-mail to user who made
+  the edit.
 
 === API changes in 1.19 ===
 * Made action=edit less likely to return "unknownerror", by returning the actual error
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 );
                }