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.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/specials/SpecialMostcategories.php b/includes/specials/SpecialMostcategories.php
index e6810999..1ba05626 100644
--- a/includes/specials/SpecialMostcategories.php
+++ b/includes/specials/SpecialMostcategories.php
@@ -39,9 +39,9 @@ class MostcategoriesPage extends QueryPage {
function formatResult( $skin, $result ) {
global $wgLang;
$title = Title::makeTitleSafe( $result->namespace, $result->title );
- if ( !$title instanceof Title ) { throw new MWException('Invalid title in database'); }
+
$count = wfMsgExt( 'ncategories', array( 'parsemag', 'escape' ), $wgLang->formatNum( $result->value ) );
- $link = $skin->makeKnownLinkObj( $title, $title->getText() );
+ $link = $skin->link( $title );
return wfSpecialList( $link, $count );
}
}