From: Ilmari Karonen Date: Fri, 11 Jun 2010 15:58:29 +0000 (+0000) Subject: fix delinking of "older 48" link on Special:NewFiles when the head of the list is... X-Git-Tag: 1.31.0-rc.0~36539 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=452f29c7618be8b6ed0840d1fa50fa34ba1873e5;p=lhc%2Fweb%2Fwiklou.git fix delinking of "older 48" link on Special:NewFiles when the head of the list is hit while browsing forward in time; see commons.wikimedia.org/w/index.php?title=Commons:Village_pump&oldid=40386986#Older_48_link_at_Special:Newfiles --- 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,