(bug 29055) Make don't send email on minor edits preference apply to
authorBrian Wolff <bawolff@users.mediawiki.org>
Fri, 20 May 2011 04:51:59 +0000 (04:51 +0000)
committerBrian Wolff <bawolff@users.mediawiki.org>
Fri, 20 May 2011 04:51:59 +0000 (04:51 +0000)
changes to talk page in addition to watchlist edits.

RELEASE-NOTES-1.19
includes/UserMailer.php

index 4f165d4..9db2dfb 100644 (file)
@@ -70,6 +70,8 @@ production.
   call callback too early.
 * (bug 4330) External URLs without custom title should be treated as LTR,
   also in RTL text.
+* (bug 29055) Make don't send email on minor edits preference apply to
+  changes to talk page in addition to watchlist edits.
 
 === API changes in 1.19 ===
 * (bug 27790) add query type for querymodules to action=paraminfo
index b33c2a6..c27997e 100644 (file)
@@ -429,7 +429,9 @@ class EmailNotification {
                                        wfDebug( __METHOD__ . ": user talk page edited, but user does not exist\n" );
                                } elseif ( $targetUser->getId() == $editor->getId() ) {
                                        wfDebug( __METHOD__ . ": user edited their own talk page, no notification sent\n" );
-                               } elseif ( $targetUser->getOption( 'enotifusertalkpages' ) ) {
+                               } elseif ( $targetUser->getOption( 'enotifusertalkpages' ) &&
+                                       ( !$minorEdit || $targetUser->getOption( 'enotifminoredits' ) ) )
+                               {
                                        if ( $targetUser->isEmailConfirmed() ) {
                                                wfDebug( __METHOD__ . ": sending talk page update notification\n" );
                                                $this->compose( $targetUser );