summaryrefslogtreecommitdiff
path: root/includes/specials/SpecialMostcategories.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/specials/SpecialMostcategories.php')
-rw-r--r--includes/specials/SpecialMostcategories.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/includes/specials/SpecialMostcategories.php b/includes/specials/SpecialMostcategories.php
index 2e437196..98b73675 100644
--- a/includes/specials/SpecialMostcategories.php
+++ b/includes/specials/SpecialMostcategories.php
@@ -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 );
}
}