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

Revision: 97935
Author:   robin
Date:     2011-09-23 17:48:26 +0000 (Fri, 23 Sep 2011)
Log Message:
-----------
merge r97933

Modified Paths:
--------------
    branches/REL1_18/extensions/Babel/BabelAutoCreate.class.php

Modified: branches/REL1_18/extensions/Babel/BabelAutoCreate.class.php
===================================================================
--- branches/REL1_18/extensions/Babel/BabelAutoCreate.class.php 2011-09-23 
17:45:02 UTC (rev 97934)
+++ branches/REL1_18/extensions/Babel/BabelAutoCreate.class.php 2011-09-23 
17:48:26 UTC (rev 97935)
@@ -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