Bug 32673: Keep the username in the input field if not existing
[lhc/web/wiklou.git] / includes / specials / SpecialMostcategories.php
index 2e43719..98b7367 100644 (file)
@@ -58,11 +58,10 @@ class MostcategoriesPage extends QueryPage {
         * @return string
         */
        function formatResult( $skin, $result ) {
-               global $wgLang;
                $title = Title::makeTitleSafe( $result->namespace, $result->title );
 
-               $count = wfMsgExt( 'ncategories', array( 'parsemag', 'escape' ), $wgLang->formatNum( $result->value ) );
-               $link = $skin->link( $title );
-               return wfSpecialList( $link, $count );
+               $count = $this->msg( 'ncategories' )->numParams( $result->value )->escaped();
+               $link = Linker::link( $title );
+               return $this->getLanguage()->specialList( $link, $count );
        }
 }