$cap = wfMsg( "ilshowmatch" );
$sub = wfMsg( "ilsubmit" );
$titleObj = Title::makeTitle( NS_SPECIAL, "Imagelist" );
- $action = $titleObj->escapeLocalURL( "sort=byname&limit={$limit}" );
+ $action = $titleObj->escapeLocalURL( "sort={$sort}&limit={$limit}" );
$wgOut->addHTML( "<form id=\"imagesearch\" method=\"post\" action=\"" .
"{$action}\">" .
$first = false;
$fill .= $sk->makeKnownLink( $here, $wgLang->formatNum( $num ),
- "sort=bysize&limit={$num}" );
+ "sort=byname&limit={$num}&wpIlMatch={$wpIlMatch}" );
}
- $text = wfMsg( "showlast", $fill, $bysize );
+ $text = wfMsg( "showlast", $fill, $byname );
$wgOut->addHTML( "<p>{$text}<br />\n" );
$fill = "";
$first = false;
$fill .= $sk->makeKnownLink( $here, $wgLang->formatNum( $num ),
- "sort=bydate&limit={$num}" );
+ "sort=bysize&limit={$num}&wpIlMatch={$wpIlMatch}" );
+ }
+ $text = wfMsg( "showlast", $fill, $bysize );
+ $wgOut->addHTML( "{$text}<br />\n" );
+
+ $fill = "";
+ $first = true;
+ foreach ( $nums as $num ) {
+ if ( ! $first ) { $fill .= " | "; }
+ $first = false;
+
+ $fill .= $sk->makeKnownLink( $here, $wgLang->formatNum( $num ),
+ "sort=bydate&limit={$num}&wpIlMatch={$wpIlMatch}" );
}
$text = wfMsg( "showlast", $fill, $bydate );
$wgOut->addHTML( "{$text}</p>\n<p>" );