From ef2f1338d8635431511ea06fce16ba4cb6b82d5b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Tue, 11 Apr 2006 15:56:55 +0000 Subject: [PATCH] Whoops, introduced a bug in my last commit --- includes/SpecialContributions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index c44e97ee1c..3a747054d5 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -180,6 +180,7 @@ function wfSpecialContributions( $par = null ) { if (($ns = $wgRequest->getVal('namespace', null)) !== null && $ns !== '') { $options['namespace'] = $ns; + $finder->set_namespace($options['namespace']); } else { $options['namespace'] = ''; } @@ -192,7 +193,7 @@ function wfSpecialContributions( $par = null ) { $finder = new contribs_finder(($target == 'newbies') ? 'newbies' : $nt->getText()); $finder->set_limit($options['limit']); $finder->set_offset($options['offset']); - $finder->set_namespace($options['namespace']); + if ($wgRequest->getText('go') == 'prev') { $options['offset'] = $finder->get_previous_offset_for_paging(); -- 2.20.1