r62927 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62926‎ | r62927 | r62928 >
Date:17:06, 24 February 2010
Author:soxred93
Status:ok
Tags:
Comment:
Whoops, committed wrong version
Modified paths:
  • /trunk/phase3/includes/api/ApiBase.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiBase.php
@@ -647,12 +647,12 @@
648648 case 'user':
649649 if( !is_array( $value ) ) $value = array( $value );
650650
651 - foreach( $value as $val ) {
652 - $title = Title::makeTitleSafe( NS_USER, $value );
 651+ foreach( $value as $key => $val ) {
 652+ $title = Title::makeTitleSafe( NS_USER, $val );
653653 if ( is_null( $title ) ) {
654654 $this->dieUsage( "Invalid value for user parameter $encParamName", "baduser_{$encParamName}" );
655655 }
656 - $value = $title->getText();
 656+ $value[$key] = $title->getText();
657657 }
658658
659659 if( !$multi ) $value = $value[0];

Status & tagging log