Index: branches/wmf/1.18wmf1/extensions/Babel/BabelAutoCreate.class.php |
— | — | @@ -28,7 +28,7 @@ |
29 | 29 | */ |
30 | 30 | public static function create( $category, $language, $level = null ) { |
31 | 31 | $category = strip_tags( $category ); |
32 | | - $title = Title::newFromText( $category, NS_CATEGORY ); |
| 32 | + $title = Title::makeTitleSafe( NS_CATEGORY, $category ); |
33 | 33 | if ( $title === null || $title->exists() ) { |
34 | 34 | return; |
35 | 35 | } |