aboutsummaryrefslogtreecommitdiffstats
path: root/includes/api/ApiQueryUsers.php
diff options
context:
space:
mode:
authorFomafix <fomafix@googlemail.com>2022-10-17 08:58:53 +0000
committerJames D. Forrester <jforrester@wikimedia.org>2023-03-16 12:55:20 -0400
commit3dce04e1a512a348dd5999f5eb84fa73d4221336 (patch)
treee64dee494dc733fe5a7d8f0463d536040f81d835 /includes/api/ApiQueryUsers.php
parent69db0be1dbaa62223e84d264f1a752be0f316b19 (diff)
downloadmediawikicore-3dce04e1a512a348dd5999f5eb84fa73d4221336.tar.gz
mediawikicore-3dce04e1a512a348dd5999f5eb84fa73d4221336.zip
Rename PHP classes to match filenames
Also change the letter case in the file names to be consistent to other files in includes/specials. The PHPCS exclude-pattern for these files on MediaWiki.Files.ClassMatchesFilename.NotMatch can now removed. The old class names are still available as aliases and are deprecated now. Change-Id: Id71f5a5ce456caf522c95c477487e14f366c1b40
Diffstat (limited to 'includes/api/ApiQueryUsers.php')
-rw-r--r--includes/api/ApiQueryUsers.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/api/ApiQueryUsers.php b/includes/api/ApiQueryUsers.php
index 3bf4b79478c5..0edea70ca79f 100644
--- a/includes/api/ApiQueryUsers.php
+++ b/includes/api/ApiQueryUsers.php
@@ -267,7 +267,7 @@ class ApiQueryUsers extends ApiQueryBase {
if ( !isset( $data[$u] ) ) {
if ( $useNames ) {
$data[$u] = [ 'name' => $u ];
- $urPage = new UserrightsPage;
+ $urPage = new SpecialUserRights;
$urPage->setContext( $context );
$iwUser = $urPage->fetchUser( $u );