From b24054463281d68032cff8bed7f102e64530e61f Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Tue, 3 May 2005 19:57:46 +0000 Subject: [PATCH] * Fixed a bug where a user would loose his namespace selection. --- includes/SpecialRecentchanges.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/SpecialRecentchanges.php b/includes/SpecialRecentchanges.php index d20e0f420e..3a05d2763d 100644 --- a/includes/SpecialRecentchanges.php +++ b/includes/SpecialRecentchanges.php @@ -50,7 +50,7 @@ function wfSpecialRecentchanges( $par ) { $hidebots = $wgRequest->getBool( 'hidebots', true ); $hideliu = $wgRequest->getBool( 'hideliu' ); $hidepatrolled = $wgRequest->getBool( 'hidepatrolled' ); - $namespace = $wgRequest->getInt( 'namespace', '' ); + $namespace = $wgRequest->getVal( 'namespace', '' ); $namespace = $namespace === '' ? NULL : $namespace; $invert = $wgRequest->getBool( 'invert' ); @@ -117,6 +117,8 @@ function wfSpecialRecentchanges( $par ) { 'days' => $days, 'limit' => $limit, 'from' => $from, + 'namespace' => $namespace, + 'invert' => $invert, ); $uid = $wgUser->getID(); @@ -429,7 +431,7 @@ function namespaceForm ( $namespace, $invert ) { if( $ns < NS_MAIN ) continue; $n = $ns === NS_MAIN ? wfMsg ( 'blanknamespace' ) : $name; - $sel = $namespace === $ns ? ' selected="selected"' : ''; + $sel = $namespace === (string)$ns ? ' selected="selected"' : ''; $namespaceselect .= ""; } $namespaceselect .= ''; -- 2.20.1