r32230 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r32229‎ | r32230 | r32231 >
Date:17:07, 20 March 2008
Author:simetrical
Status:old
Tags:
Comment:
Wait, never mind, revert that. This is supposed to be DB keys . . .
Modified paths:
  • /trunk/phase3/includes/Category.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Category.php
@@ -50,7 +50,7 @@
5151 * @return mixed Normalized name, or false if the name was invalid.
5252 */
5353 private static function setNamesCallback( $name ) {
54 - $title = Title::makeTitleSafe( NS_CATEGORY, $name );
 54+ $title = Title::newFromText( "Category:$name" );
5555 if( !is_object( $title ) ) {
5656 return false;
5757 }

Status & tagging log