From: Siebrand Mazeland Date: Mon, 15 Jun 2009 17:57:13 +0000 (+0000) Subject: (bug 19211) Fix regression from r50351 that caused looping in previous/next navigation X-Git-Tag: 1.31.0-rc.0~41359 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=12126854f49efc2ec478ebdf082db23580088da6;p=lhc%2Fweb%2Fwiklou.git (bug 19211) Fix regression from r50351 that caused looping in previous/next navigation --- 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 ); }