followup to r67856: don't pass null as a query parameter value, even if it seems...
authorIlmari Karonen <vyznev@users.mediawiki.org>
Fri, 11 Jun 2010 19:28:28 +0000 (19:28 +0000)
committerIlmari Karonen <vyznev@users.mediawiki.org>
Fri, 11 Jun 2010 19:28:28 +0000 (19:28 +0000)
includes/specials/SpecialNewimages.php

index 5bfba4a..c4fb7c8 100644 (file)
@@ -216,7 +216,7 @@ function wfSpecialNewimages( $par, $specialPage ) {
        $nextLink = wfMsgExt( 'pager-older-n', $opts, $wgLang->formatNum( $limit ) );
        if( $invertSort || ( $shownImages > $limit && $lastTimestamp ) ) {
                $query = array_merge(
-                       array( 'until' => $lastTimestamp ),
+                       array( 'until' => ( $lastTimestamp ? $lastTimestamp : "" ) ),
                        $botpar,
                        $searchpar
                );