class PageQueryPage extends QueryPage {
function formatResult( $skin, $result ) {
+ global $wgContLang;
$nt = Title::makeTitle( $result->namespace, $result->title );
- return $skin->makeKnownLinkObj( $nt, '' );
+ return $skin->makeKnownLinkObj( $nt, $wgContLang->convert( $result->title ) );
}
}
}
function formatResult( $skin, $result ) {
- global $wgLang;
+ global $wgLang, $wgContLang;
$d = $wgLang->timeanddate( wfTimestamp( TS_MW, $result->value ), true );
- $link = $skin->makeKnownLink( $result->title, "" );
+ $link = $skin->makeKnownLink( $result->title, $wgContLang->convert( $result->title) );
return "{$link} ({$d})";
}
}
}
function formatResult( $skin, $result ) {
- global $wgLang;
- $link = $skin->makeKnownLink( $result->title, "" );
+ global $wgLang, $wgContLang;
+ $link = $skin->makeKnownLink( $result->title, $wgContLang->convert( $result->title ) );
$nv = wfMsg( "nviews", $wgLang->formatNum( $result->value ) );
return "{$link} ({$nv})";
}
}
function formatResult( $skin, $result ) {
- global $wgLang;
+ global $wgLang, $wgContLang;
$nb = wfMsg( "nbytes", $wgLang->formatNum( $result->value ) );
- $link = $skin->makeKnownLink( $result->title, "" );
+ $link = $skin->makeKnownLink( $result->title, $wgContLang->convert( $result->title ) );
return "{$link} ({$nb})";
}
}