From: Ævar Arnfjörð Bjarmason Date: Tue, 3 May 2005 19:57:46 +0000 (+0000) Subject: * Fixed a bug where a user would loose his namespace selection. X-Git-Tag: 1.5.0alpha2~328 X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=commitdiff_plain;h=b24054463281d68032cff8bed7f102e64530e61f;p=lhc%2Fweb%2Fwiklou.git * Fixed a bug where a user would loose his namespace selection. --- 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 .= '';