dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fe72f84
)
Whoops, committed wrong version
author
X!
<soxred93@users.mediawiki.org>
Wed, 24 Feb 2010 17:06:19 +0000
(17:06 +0000)
committer
X!
<soxred93@users.mediawiki.org>
Wed, 24 Feb 2010 17:06:19 +0000
(17:06 +0000)
includes/api/ApiBase.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiBase.php
b/includes/api/ApiBase.php
index
3905995
..
39205bd
100644
(file)
--- a/
includes/api/ApiBase.php
+++ b/
includes/api/ApiBase.php
@@
-647,12
+647,12
@@
abstract class ApiBase {
case 'user':
if( !is_array( $value ) ) $value = array( $value );
case 'user':
if( !is_array( $value ) ) $value = array( $value );
- foreach( $value as $val ) {
- $title = Title::makeTitleSafe( NS_USER, $val
ue
);
+ foreach( $value as $
key => $
val ) {
+ $title = Title::makeTitleSafe( NS_USER, $val );
if ( is_null( $title ) ) {
$this->dieUsage( "Invalid value for user parameter $encParamName", "baduser_{$encParamName}" );
}
if ( is_null( $title ) ) {
$this->dieUsage( "Invalid value for user parameter $encParamName", "baduser_{$encParamName}" );
}
- $value = $title->getText();
+ $value
[$key]
= $title->getText();
}
if( !$multi ) $value = $value[0];
}
if( !$multi ) $value = $value[0];