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
Merge "RCFilters: Correct unbalanced margins in active filters display"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryAllUsers.php
diff --git
a/includes/api/ApiQueryAllUsers.php
b/includes/api/ApiQueryAllUsers.php
index
136f60e
..
fd95e17
100644
(file)
--- a/
includes/api/ApiQueryAllUsers.php
+++ b/
includes/api/ApiQueryAllUsers.php
@@
-122,9
+122,7
@@
class ApiQueryAllUsers extends ApiQueryBase {
[
'ug1.ug_user=user_id',
'ug1.ug_group' => $params['group'],
[
'ug1.ug_user=user_id',
'ug1.ug_group' => $params['group'],
- $this->getConfig()->get( 'DisableUserGroupExpiry' ) ?
- '1' :
- 'ug1.ug_expiry IS NULL OR ug1.ug_expiry >= ' . $db->addQuotes( $db->timestamp() )
+ 'ug1.ug_expiry IS NULL OR ug1.ug_expiry >= ' . $db->addQuotes( $db->timestamp() )
]
]
] );
]
]
] );
@@
-147,9
+145,7
@@
class ApiQueryAllUsers extends ApiQueryBase {
$this->addJoinConds( [ 'ug1' => [ 'LEFT OUTER JOIN',
array_merge( [
'ug1.ug_user=user_id',
$this->addJoinConds( [ 'ug1' => [ 'LEFT OUTER JOIN',
array_merge( [
'ug1.ug_user=user_id',
- $this->getConfig()->get( 'DisableUserGroupExpiry' ) ?
- '1' :
- 'ug1.ug_expiry IS NULL OR ug1.ug_expiry >= ' . $db->addQuotes( $db->timestamp() )
+ 'ug1.ug_expiry IS NULL OR ug1.ug_expiry >= ' . $db->addQuotes( $db->timestamp() )
], $exclude )
] ] );
$this->addWhere( 'ug1.ug_user IS NULL' );
], $exclude )
] ] );
$this->addWhere( 'ug1.ug_user IS NULL' );
@@
-165,9
+161,7
@@
class ApiQueryAllUsers extends ApiQueryBase {
$this->addFields( [ 'groups' =>
$db->buildGroupConcatField( '|', 'user_groups', 'ug_group', [
'ug_user=user_id',
$this->addFields( [ 'groups' =>
$db->buildGroupConcatField( '|', 'user_groups', 'ug_group', [
'ug_user=user_id',
- $this->getConfig()->get( 'DisableUserGroupExpiry' ) ?
- '1' :
- 'ug_expiry IS NULL OR ug_expiry >= ' . $db->addQuotes( $db->timestamp() )
+ 'ug_expiry IS NULL OR ug_expiry >= ' . $db->addQuotes( $db->timestamp() )
] )
] );
}
] )
] );
}
@@
-186,7
+180,7
@@
class ApiQueryAllUsers extends ApiQueryBase {
],
] ] );
],
] ] );
- // Actually count the actions using a subquery (
bug 64505 and bug 64
507)
+ // Actually count the actions using a subquery (
T66505 and T66
507)
$timestamp = $db->timestamp( wfTimestamp( TS_UNIX ) - $activeUserSeconds );
$this->addFields( [
'recentactions' => '(' . $db->selectSQLText(
$timestamp = $db->timestamp( wfTimestamp( TS_UNIX ) - $activeUserSeconds );
$this->addFields( [
'recentactions' => '(' . $db->selectSQLText(
@@
-395,6
+389,6
@@
class ApiQueryAllUsers extends ApiQueryBase {
}
public function getHelpUrls() {
}
public function getHelpUrls() {
- return 'https://www.mediawiki.org/wiki/API:Allusers';
+ return 'https://www.mediawiki.org/wiki/
Special:MyLanguage/
API:Allusers';
}
}
}
}