From c4e8e030e442d52100dc471885801510d50f2ef9 Mon Sep 17 00:00:00 2001 From: Rohan Date: Wed, 9 Jul 2014 17:10:35 +0530 Subject: [PATCH] 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 --- includes/specials/SpecialListfiles.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; + } } } -- 2.20.1