From: Alexandre Emsenhuber Date: Wed, 27 Aug 2008 22:23:04 +0000 (+0000) Subject: (bug 15342) "Invert" checkbox now works correctly when selecting main namespace in... X-Git-Tag: 1.31.0-rc.0~45607 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=cfd6729f5bec7d024e99e739299bb5c52f224c4f;p=lhc%2Fweb%2Fwiklou.git (bug 15342) "Invert" checkbox now works correctly when selecting main namespace in Special:Watchlist --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index f191f75c62..db74d670a0 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/specials/SpecialWatchlist.php b/includes/specials/SpecialWatchlist.php index 5a0404239c..57d38b41a2 100644 --- a/includes/specials/SpecialWatchlist.php +++ b/includes/specials/SpecialWatchlist.php @@ -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";