function formatResult( $skin, $result ) {
global $wgLang, $wgContLang;
- $nb = htmlspecialchars( wfMsg( "nbytes", $wgLang->formatNum( $result->value ) ) );
+ $nb = htmlspecialchars( wfMsg( 'nbytes', $wgLang->formatNum( $result->value ) ) );
$title = Title::makeTitle( $result->namespace, $result->title );
$link = $skin->makeKnownLinkObj( $title, htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ) );
- return "{$link} ({$nb})";
+ $histlink = $skin->makeKnownLinkObj( $title, wfMsg('hist'), 'action=history' );
+ return "({$histlink}) $link ({$nb})";
}
}