fix delinking of "older 48" link on Special:NewFiles when the head of the list is...
authorIlmari Karonen <vyznev@users.mediawiki.org>
Fri, 11 Jun 2010 15:58:29 +0000 (15:58 +0000)
committerIlmari Karonen <vyznev@users.mediawiki.org>
Fri, 11 Jun 2010 15:58:29 +0000 (15:58 +0000)
includes/specials/SpecialNewimages.php

index a39b56e..5bfba4a 100644 (file)
@@ -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,