dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix not-loaded DbPageLanguage when Title::getPageLanguage() get's called
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryUsers.php
diff --git
a/includes/api/ApiQueryUsers.php
b/includes/api/ApiQueryUsers.php
index
a826c1b
..
ea9d48d
100644
(file)
--- a/
includes/api/ApiQueryUsers.php
+++ b/
includes/api/ApiQueryUsers.php
@@
-48,6
+48,7
@@
class ApiQueryUsers extends ApiQueryBase {
'registration',
'emailable',
'gender',
'registration',
'emailable',
'gender',
+ 'centralids',
);
public function __construct( ApiQuery $query, $moduleName ) {
);
public function __construct( ApiQuery $query, $moduleName ) {
@@
-213,6
+214,12
@@
class ApiQueryUsers extends ApiQueryBase {
$data[$name]['gender'] = $gender;
}
$data[$name]['gender'] = $gender;
}
+ if ( isset( $this->prop['centralids'] ) ) {
+ $data[$name] += ApiQueryUserInfo::getCentralUserInfo(
+ $this->getConfig(), $user, $params['attachedwiki']
+ );
+ }
+
if ( !is_null( $params['token'] ) ) {
$tokenFunctions = $this->getTokenFunctions();
foreach ( $params['token'] as $t ) {
if ( !is_null( $params['token'] ) ) {
$tokenFunctions = $this->getTokenFunctions();
foreach ( $params['token'] as $t ) {
@@
-304,10
+311,13
@@
class ApiQueryUsers extends ApiQueryBase {
'registration',
'emailable',
'gender',
'registration',
'emailable',
'gender',
+ 'centralids',
),
ApiBase::PARAM_HELP_MSG_PER_VALUE => array(),
),
),
ApiBase::PARAM_HELP_MSG_PER_VALUE => array(),
),
+ 'attachedwiki' => null,
'users' => array(
'users' => array(
+ ApiBase::PARAM_TYPE => 'user',
ApiBase::PARAM_ISMULTI => true
),
'token' => array(
ApiBase::PARAM_ISMULTI => true
),
'token' => array(