From: Jens Frank Date: Tue, 1 Jun 2004 22:06:56 +0000 (+0000) Subject: Use title object so that _ will be rendered as space X-Git-Tag: 1.5.0alpha1~3087 X-Git-Url: http://git.cyclocoop.org/%22.htmlspecialchars%28%24url_syndic%29.%22?a=commitdiff_plain;h=f4fa02f786afb98caca75b7b5521fde2809c3eca;p=lhc%2Fweb%2Fwiklou.git Use title object so that _ will be rendered as space --- diff --git a/includes/SpecialCategories.php b/includes/SpecialCategories.php index 34ebc6a832..6cc493e7cc 100644 --- a/includes/SpecialCategories.php +++ b/includes/SpecialCategories.php @@ -13,7 +13,7 @@ class CategoriesPage extends QueryPage { } function getSQL() { - $NScat = Namespace::getCategory(); + $NScat = NS_CATEGORY; return "SELECT DISTINCT 'Categories' as type, {$NScat} as namespace, cl_to as title, @@ -27,7 +27,8 @@ class CategoriesPage extends QueryPage { function formatResult( $skin, $result ) { global $wgLang; - return $skin->makeLink( $wgLang->getNsText( NS_CATEGORY ).":".$result->title, $result->title ); + $title = Title::makeTitle( NS_CATEGORY, $result->title ); + return $skin->makeLinkObj( $title, $title->getText() ); } }