Okay, use named constants that are actually equivalent to what they replace. But...
authorAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 9 Jul 2007 22:12:55 +0000 (22:12 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 9 Jul 2007 22:12:55 +0000 (22:12 +0000)
includes/UserMailer.php

index fc8bbbd..9c3e150 100644 (file)
@@ -240,7 +240,7 @@ class EmailNotification {
                global $wgEnotifUseJobQ;
                global $wgEnotifWatchlist, $wgShowUpdatedMarker;
 
-               if( $title->getNamespace() == NS_SPECIAL )
+               if( in_array( $title->getNamespace(), array(NS_SPECIAL, NS_MEDIA) ) )
                        return;
 
                if ($wgEnotifUseJobQ) {