From: Aryeh Gregor Date: Thu, 20 Mar 2008 17:04:32 +0000 (+0000) Subject: I knew there was a better way. Use makeTitleSafe for this too. X-Git-Tag: 1.31.0-rc.0~48931 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=6a300fabcfd6756db01c90553a793a733ac54b0d;p=lhc%2Fweb%2Fwiklou.git I knew there was a better way. Use makeTitleSafe for this too. --- diff --git a/includes/Category.php b/includes/Category.php index 37127d5484..d9a09fea7c 100644 --- a/includes/Category.php +++ b/includes/Category.php @@ -50,7 +50,7 @@ abstract class CategoryListBase { * @return mixed Normalized name, or false if the name was invalid. */ private static function setNamesCallback( $name ) { - $title = Title::newFromText( "Category:$name" ); + $title = Title::makeTitleSafe( NS_CATEGORY, $name ); if( !is_object( $title ) ) { return false; }