* @return string
*/
function formatResult( $skin, $result ) {
- global $wgLang, $wgContLang;
+ global $wgContLang;
$nt = Title::makeTitle( $result->namespace, $result->title );
$text = htmlspecialchars( $wgContLang->convert( $nt->getText() ) );
$plink = $this->isCached() ?
- $skin->link( $nt, $text ) :
- $skin->link(
+ Linker::link( $nt, $text ) :
+ Linker::link(
$nt,
$text,
array(),
array( 'broken' )
);
- $nlinks = wfMsgExt( 'nmembers', array( 'parsemag', 'escape'),
- $wgLang->formatNum( $result->value ) );
- return wfSpecialList($plink, $nlinks);
+ $nlinks = wfMsgExt( 'nmembers', array( 'parsemag', 'escape' ),
+ $this->getLang()->formatNum( $result->value ) );
+ return wfSpecialList( $plink, $nlinks );
}
}