From: Ævar Arnfjörð Bjarmason Date: Mon, 9 May 2005 22:46:03 +0000 (+0000) Subject: * Fixed a problem with the user preferences not being respected. X-Git-Tag: 1.5.0alpha2~236 X-Git-Url: https://git.cyclocoop.org/%20%27.%28%24debut%20%20%20%24par_page%29.%27?a=commitdiff_plain;h=2dc0f67291bbaf02c077f4178e4682f5874d924f;p=lhc%2Fweb%2Fwiklou.git * Fixed a problem with the user preferences not being respected. --- diff --git a/includes/SpecialRecentchanges.php b/includes/SpecialRecentchanges.php index ccabbb94dc..2cfe8dafb2 100644 --- a/includes/SpecialRecentchanges.php +++ b/includes/SpecialRecentchanges.php @@ -43,15 +43,13 @@ function wfSpecialRecentchanges( $par ) { $days = $wgUser->getOption( 'rcdays' ); if ( !$days ) { $days = $defaults['days']; } + $days = $wgRequest->getInt( 'days', $days ); $limit = $wgUser->getOption( 'rclimit' ); if ( !$limit ) { $limit = $defaults['limit']; } - - $days = $wgRequest->getInt( 'days', $defaults['days'] ); - # list( $limit, $offset ) = wfCheckLimits( 100, 'rclimit' ); - $limit = $wgRequest->getInt( 'limit', $defaults['limit'] ); + $limit = $wgRequest->getInt( 'limit', $limit ); if ( $limit < 0 || $limit > 5000 ) $limit = $defaults['limit']; /* order of selection: url > preferences > default */