From cfd6729f5bec7d024e99e739299bb5c52f224c4f Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Wed, 27 Aug 2008 22:23:04 +0000 Subject: [PATCH] (bug 15342) "Invert" checkbox now works correctly when selecting main namespace in Special:Watchlist --- RELEASE-NOTES | 2 ++ includes/specials/SpecialWatchlist.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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"; -- 2.20.1