From: Alexandre Emsenhuber Date: Tue, 6 Sep 2011 12:23:47 +0000 (+0000) Subject: * Use local context instead of global variables X-Git-Tag: 1.31.0-rc.0~27881 X-Git-Url: http://git.cyclocoop.org//%27http:/code.google.com/p/ie7-js//%27?a=commitdiff_plain;h=6e413f07573c17105491f025a07be119c2a25e5c;p=lhc%2Fweb%2Fwiklou.git * Use local context instead of global variables * Call Linker methods statically --- diff --git a/includes/specials/SpecialWantedcategories.php b/includes/specials/SpecialWantedcategories.php index 800e940a02..9a17adc9dd 100644 --- a/includes/specials/SpecialWantedcategories.php +++ b/includes/specials/SpecialWantedcategories.php @@ -54,14 +54,14 @@ class WantedCategoriesPage extends WantedQueryPage { * @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(), @@ -69,8 +69,8 @@ class WantedCategoriesPage extends WantedQueryPage { 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 ); } }