From 12126854f49efc2ec478ebdf082db23580088da6 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Mon, 15 Jun 2009 17:57:13 +0000 Subject: [PATCH] (bug 19211) Fix regression from r50351 that caused looping in previous/next navigation --- includes/CategoryPage.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/includes/CategoryPage.php b/includes/CategoryPage.php index 35a83264f7..83e378d328 100644 --- a/includes/CategoryPage.php +++ b/includes/CategoryPage.php @@ -464,22 +464,24 @@ class CategoryViewer { $prevLink = wfMsgExt( 'prevn', array( 'escape', 'parsemag' ), $limitText ); if( $first != '' ) { - $query['until'] = $first; + $prevQuery = $query; + $prevQuery['until'] = $first; $prevLink = $sk->link( $title, $prevLink, array(), - $query + $prevQuery ); } $nextLink = wfMsgExt( 'nextn', array( 'escape', 'parsemag' ), $limitText ); if( $last != '' ) { - $query['from'] = $last; + $lastQuery = $query; + $lastQuery['from'] = $last; $nextLink = $sk->link( $title, $nextLink, array(), - $query + $lastQuery ); } -- 2.20.1