aboutsummaryrefslogtreecommitdiffstats
path: root/includes/api/ApiQueryAllUsers.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/api/ApiQueryAllUsers.php')
-rw-r--r--includes/api/ApiQueryAllUsers.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/includes/api/ApiQueryAllUsers.php b/includes/api/ApiQueryAllUsers.php
index 309a167b73ea..216749cae43c 100644
--- a/includes/api/ApiQueryAllUsers.php
+++ b/includes/api/ApiQueryAllUsers.php
@@ -326,9 +326,13 @@ class ApiQueryAllUsers extends ApiQueryBase {
return 'anon-public-user-private';
}
- public function getAllowedParams() {
+ public function getAllowedParams( $flags = 0 ) {
$userGroups = User::getAllGroups();
+ if ( $flags & ApiBase::GET_VALUES_FOR_HELP ) {
+ sort( $userGroups );
+ }
+
return [
'from' => null,
'to' => null,