* (bug 4918) Clean up logic for email notification minor edit option. I haven't been...
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 20 Sep 2007 19:55:22 +0000 (19:55 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 20 Sep 2007 19:55:22 +0000 (19:55 +0000)
includes/UserMailer.php

index 835dd31..436c63f 100644 (file)
@@ -347,12 +347,15 @@ class EmailNotification {
                                                $wuser = $dbr->fetchObject( $res );
                                                $watchingUser->setID($wuser->wl_user);
                                                
-                                               if ( ( $enotifwatchlistpage && $watchingUser->getOption('enotifwatchlistpages') ) ||
-                                                       ( $enotifusertalkpage
-                                                               && $watchingUser->getOption('enotifusertalkpages')
-                                                               && $title->equals( $watchingUser->getTalkPage() ) )
-                                               && (!$minorEdit || ($wgEnotifMinorEdits && $watchingUser->getOption('enotifminoredits') ) )
-                                               && ($watchingUser->isEmailConfirmed() ) ) {
+                                               if ( ( ( $enotifwatchlistpage
+                                                                       && $watchingUser->getOption('enotifwatchlistpages') )
+                                                               || ( $enotifusertalkpage
+                                                                       && $watchingUser->getOption('enotifusertalkpages')
+                                                                       && $title->equals( $watchingUser->getTalkPage() ) ) )
+                                                       && ( !$minorEdit
+                                                               || ( $wgEnotifMinorEdits
+                                                                       && $watchingUser->getOption('enotifminoredits') ) )
+                                                       && ( $watchingUser->isEmailConfirmed() ) ) {
                                                        # ... adjust remaining text and page edit time placeholders
                                                        # which needs to be personalized for each user
                                                        if ($wgEnotifImpersonal)