(bug 15342) "Invert" checkbox now works correctly when selecting main namespace in...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 27 Aug 2008 22:23:04 +0000 (22:23 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 27 Aug 2008 22:23:04 +0000 (22:23 +0000)
RELEASE-NOTES
includes/specials/SpecialWatchlist.php

index f191f75..db74d67 100644 (file)
@@ -151,6 +151,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 15303) Title conversion for templates wasn't working in some cases.
 * (bug 15264) Underscores in Special:Search/Foo_bar parameters were taken
   literally; now converting them to spaces per expectation.
+* (bug 15342) "Invert" checkbox now works correctly when selecting main
+  namespace in Special:Watchlist
 
 
 === API changes in 1.14 ===
index 5a04042..57d38b4 100644 (file)
@@ -81,7 +81,7 @@ function wfSpecialWatchlist( $par ) {
        $invert = $wgRequest->getIntOrNull( 'invert' );
        if( !is_null( $nameSpace ) ) {
                $nameSpace = intval( $nameSpace );
-               if( $invert && $nameSpace != 'all' )
+               if( $invert && $nameSpace !== 'all' )
                        $nameSpaceClause = " AND rc_namespace != $nameSpace";
                else
                        $nameSpaceClause = " AND rc_namespace = $nameSpace";