http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97934

Revision: 97934
Author:   catrope
Date:     2011-09-23 17:45:02 +0000 (Fri, 23 Sep 2011)
Log Message:
-----------
1.17wmf1: MFT r97933

Modified Paths:
--------------
    branches/wmf/1.17wmf1/extensions/Babel/BabelAutoCreate.class.php

Modified: branches/wmf/1.17wmf1/extensions/Babel/BabelAutoCreate.class.php
===================================================================
--- branches/wmf/1.17wmf1/extensions/Babel/BabelAutoCreate.class.php    
2011-09-23 17:41:25 UTC (rev 97933)
+++ branches/wmf/1.17wmf1/extensions/Babel/BabelAutoCreate.class.php    
2011-09-23 17:45:02 UTC (rev 97934)
@@ -28,7 +28,7 @@
         */
        public static function create( $category, $language, $level = null ) {
                $category = strip_tags( $category );
-               $title = Title::newFromText( $category, NS_CATEGORY );
+               $title = Title::makeTitleSafe( NS_CATEGORY, $category );
                if ( $title === null || $title->exists() ) {
                        return;
                }


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to