From b9b85843572bf283f48285001e276ba7e61b63f6 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sun, 22 Feb 2009 13:37:51 +0100 Subject: updated to MediaWiki 1.14.0 --- includes/specials/SpecialMostcategories.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/specials/SpecialMostcategories.php') 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 ); } } -- cgit v1.2.3-54-g00ecf