r97936 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97935‎ | r97936 | r97937 >
Date:17:52, 23 September 2011
Author:catrope
Status:ok
Tags:
Comment:
1.18wmf1: MFT r97933
Modified paths:
  • /branches/wmf/1.18wmf1/extensions/Babel/BabelAutoCreate.class.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/extensions/Babel/BabelAutoCreate.class.php
@@ -28,7 +28,7 @@
2929 */
3030 public static function create( $category, $language, $level = null ) {
3131 $category = strip_tags( $category );
32 - $title = Title::newFromText( $category, NS_CATEGORY );
 32+ $title = Title::makeTitleSafe( NS_CATEGORY, $category );
3333 if ( $title === null || $title->exists() ) {
3434 return;
3535 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r97933Use makeTitleSafe to create categories, otherwise it can create pages *not* i...robin17:41, 23 September 2011

Status & tagging log