From: Rohan Date: Wed, 9 Jul 2014 11:40:35 +0000 (+0530) Subject: Fix navigation buttons on Special:Listfiles for first and last page X-Git-Tag: 1.31.0-rc.0~14914^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=c4e8e030e442d52100dc471885801510d50f2ef9;ds=sidebyside Fix navigation buttons on Special:Listfiles for first and last page The listfiles pager was appending the username to the paging queries for all paging queries. On the first/last page, this was appending the username to false, thus marking the first/last page as still having further results despite that not being the case. Bug: 67627 Change-Id: Ib302a826fa638d7ae25c6d37951277fa8701ab69 --- diff --git a/includes/specials/SpecialListfiles.php b/includes/specials/SpecialListfiles.php index 3715b8b6e6..8e170151f3 100644 --- a/includes/specials/SpecialListfiles.php +++ b/includes/specials/SpecialListfiles.php @@ -547,7 +547,9 @@ class ImageListPager extends TablePager { if ( !is_null( $this->mUserName ) ) { # Append the username to the query string foreach ( $queries as &$query ) { - $query['user'] = $this->mUserName; + if ( $query !== false ) { + $query['user'] = $this->mUserName; + } } }