- $res = wfQuery( $sql, "wfSpecialImagelist" );
- while ( $s = wfFetchObject( $res ) ) {
+ $fill = "";
+ $first = true;
+ foreach ( $nums as $num ) {
+ if ( ! $first ) { $fill .= " | "; }
+ $first = false;
+
+ $fill .= $sk->makeKnownLinkObj( $here, $wgLang->formatNum( $num ),
+ "sort=bydate&limit={$num}&wpIlMatch=" . urlencode( $wpIlMatch ) );
+ }
+ $text = wfMsg( "showlast", $fill, $bydate );
+ $wgOut->addHTML( "{$text}</p>\n<p>" );
+
+ $res = $dbr->query( $sql, "wfSpecialImagelist" );
+ while ( $s = $dbr->fetchObject( $res ) ) {