From 8f416baead93a48e5799e44b8bd2e2c4859f4e04 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 14 Sep 2007 13:18:58 +0200 Subject: auf Version 1.11 aktualisiert; Login-Bug behoben --- includes/SpecialMostcategories.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'includes/SpecialMostcategories.php') diff --git a/includes/SpecialMostcategories.php b/includes/SpecialMostcategories.php index df2b9adf..589b96ee 100644 --- a/includes/SpecialMostcategories.php +++ b/includes/SpecialMostcategories.php @@ -38,6 +38,7 @@ 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() ); return wfSpecialList( $link, $count ); @@ -55,4 +56,4 @@ function wfSpecialMostcategories() { $wpp->doQuery( $offset, $limit ); } -?> + -- cgit v1.2.3-54-g00ecf