Index: trunk/phase3/includes/api/ApiBase.php |
— | — | @@ -647,12 +647,12 @@ |
648 | 648 | case 'user': |
649 | 649 | if( !is_array( $value ) ) $value = array( $value ); |
650 | 650 | |
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 ); |
653 | 653 | if ( is_null( $title ) ) { |
654 | 654 | $this->dieUsage( "Invalid value for user parameter $encParamName", "baduser_{$encParamName}" ); |
655 | 655 | } |
656 | | - $value = $title->getText(); |
| 656 | + $value[$key] = $title->getText(); |
657 | 657 | } |
658 | 658 | |
659 | 659 | if( !$multi ) $value = $value[0]; |