From 452f29c7618be8b6ed0840d1fa50fa34ba1873e5 Mon Sep 17 00:00:00 2001 From: Ilmari Karonen Date: Fri, 11 Jun 2010 15:58:29 +0000 Subject: [PATCH] fix delinking of "older 48" link on Special:NewFiles when the head of the list is hit while browsing forward in time; see http://commons.wikimedia.org/w/index.php?title=Commons:Village_pump&oldid=40386986#Older_48_link_at_Special:Newfiles --- includes/specials/SpecialNewimages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialNewimages.php b/includes/specials/SpecialNewimages.php index a39b56eef0..5bfba4a849 100644 --- a/includes/specials/SpecialNewimages.php +++ b/includes/specials/SpecialNewimages.php @@ -214,7 +214,7 @@ function wfSpecialNewimages( $par, $specialPage ) { } $nextLink = wfMsgExt( 'pager-older-n', $opts, $wgLang->formatNum( $limit ) ); - if( $shownImages > $limit && $lastTimestamp ) { + if( $invertSort || ( $shownImages > $limit && $lastTimestamp ) ) { $query = array_merge( array( 'until' => $lastTimestamp ), $botpar, -- 2.20.1