(bug 16429) "nominornewtalk" should not trigger e-mail notifications
authorAaron Schulz <aaron@users.mediawiki.org>
Fri, 2 Jan 2009 21:32:00 +0000 (21:32 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Fri, 2 Jan 2009 21:32:00 +0000 (21:32 +0000)
includes/UserMailer.php

index 3018f4c..731648c 100644 (file)
@@ -342,7 +342,7 @@ class EmailNotification {
 
                $userTalkId = false;
 
-               if ( (!$minorEdit || $wgEnotifMinorEdits) ) {
+               if ( !$minorEdit || ($wgEnotifMinorEdits && !$editor->isAllowed('nominornewtalk') ) ) {
                        if ( $wgEnotifUserTalk && $isUserTalkPage ) {
                                $targetUser = User::newFromName( $title->getText() );
                                if ( !$targetUser || $targetUser->isAnon() ) {