Bug 32673: Keep the username in the input field if not existing
[lhc/web/wiklou.git] / includes / specials / SpecialWantedcategories.php
index 800e940..33e789d 100644 (file)
@@ -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,9 @@ class WantedCategoriesPage extends WantedQueryPage {
                                array( 'broken' )
                        );
 
-               $nlinks = wfMsgExt( 'nmembers', array( 'parsemag', 'escape'),
-                       $wgLang->formatNum( $result->value ) );
-               return wfSpecialList($plink, $nlinks);
+               $lang = $this->getLanguage();
+               $nlinks = wfMsgExt( 'nmembers', array( 'parsemag', 'escape' ),
+                       $lang->formatNum( $result->value ) );
+               return $lang->specialList( $plink, $nlinks );
        }
 }