From 720c1b7be0d881f782e227ac7a2b86eab996fff3 Mon Sep 17 00:00:00 2001 From: Petr Onderka Date: Wed, 11 Apr 2012 17:10:22 +0200 Subject: [PATCH] Corrected capitalization in the file and class names of API modules Change-Id: I8f317e458ee0f8706434e43a7890cda530595e64 --- includes/AutoLoader.php | 6 +++--- includes/api/ApiQuery.php | 6 +++--- .../api/{ApiQueryAllimages.php => ApiQueryAllImages.php} | 4 ++-- .../{ApiQueryAllmessages.php => ApiQueryAllMessages.php} | 2 +- includes/api/{ApiQueryAllpages.php => ApiQueryAllPages.php} | 2 +- includes/api/ApiQueryFilearchive.php | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) rename includes/api/{ApiQueryAllimages.php => ApiQueryAllImages.php} (98%) rename includes/api/{ApiQueryAllmessages.php => ApiQueryAllMessages.php} (99%) rename includes/api/{ApiQueryAllpages.php => ApiQueryAllPages.php} (99%) diff --git a/includes/AutoLoader.php b/includes/AutoLoader.php index a1bbc3c0aa..56f3af6b5b 100644 --- a/includes/AutoLoader.php +++ b/includes/AutoLoader.php @@ -323,10 +323,10 @@ $wgAutoloadLocalClasses = array( 'ApiPurge' => 'includes/api/ApiPurge.php', 'ApiQuery' => 'includes/api/ApiQuery.php', 'ApiQueryAllCategories' => 'includes/api/ApiQueryAllCategories.php', - 'ApiQueryAllimages' => 'includes/api/ApiQueryAllimages.php', + 'ApiQueryAllImages' => 'includes/api/ApiQueryAllImages.php', 'ApiQueryAllLinks' => 'includes/api/ApiQueryAllLinks.php', - 'ApiQueryAllmessages' => 'includes/api/ApiQueryAllmessages.php', - 'ApiQueryAllpages' => 'includes/api/ApiQueryAllpages.php', + 'ApiQueryAllMessages' => 'includes/api/ApiQueryAllMessages.php', + 'ApiQueryAllPages' => 'includes/api/ApiQueryAllPages.php', 'ApiQueryAllUsers' => 'includes/api/ApiQueryAllUsers.php', 'ApiQueryBacklinks' => 'includes/api/ApiQueryBacklinks.php', 'ApiQueryBase' => 'includes/api/ApiQueryBase.php', diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php index c172d24dc1..866b71c25f 100644 --- a/includes/api/ApiQuery.php +++ b/includes/api/ApiQuery.php @@ -64,8 +64,8 @@ class ApiQuery extends ApiBase { ); private $mQueryListModules = array( - 'allimages' => 'ApiQueryAllimages', - 'allpages' => 'ApiQueryAllpages', + 'allimages' => 'ApiQueryAllImages', + 'allpages' => 'ApiQueryAllPages', 'alllinks' => 'ApiQueryAllLinks', 'allcategories' => 'ApiQueryAllCategories', 'allusers' => 'ApiQueryAllUsers', @@ -95,7 +95,7 @@ class ApiQuery extends ApiBase { private $mQueryMetaModules = array( 'siteinfo' => 'ApiQuerySiteinfo', 'userinfo' => 'ApiQueryUserInfo', - 'allmessages' => 'ApiQueryAllmessages', + 'allmessages' => 'ApiQueryAllMessages', ); private $mSlaveDB = null; diff --git a/includes/api/ApiQueryAllimages.php b/includes/api/ApiQueryAllImages.php similarity index 98% rename from includes/api/ApiQueryAllimages.php rename to includes/api/ApiQueryAllImages.php index ca344f7337..60a05a7e3c 100644 --- a/includes/api/ApiQueryAllimages.php +++ b/includes/api/ApiQueryAllImages.php @@ -6,7 +6,7 @@ * Created on Mar 16, 2008 * * Copyright © 2008 Vasiliev Victor vasilvv@gmail.com, - * based on ApiQueryAllpages.php + * based on ApiQueryAllPages.php * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -31,7 +31,7 @@ * * @ingroup API */ -class ApiQueryAllimages extends ApiQueryGeneratorBase { +class ApiQueryAllImages extends ApiQueryGeneratorBase { protected $mRepo; diff --git a/includes/api/ApiQueryAllmessages.php b/includes/api/ApiQueryAllMessages.php similarity index 99% rename from includes/api/ApiQueryAllmessages.php rename to includes/api/ApiQueryAllMessages.php index 44774927ee..dedd3e5c30 100644 --- a/includes/api/ApiQueryAllmessages.php +++ b/includes/api/ApiQueryAllMessages.php @@ -29,7 +29,7 @@ * * @ingroup API */ -class ApiQueryAllmessages extends ApiQueryBase { +class ApiQueryAllMessages extends ApiQueryBase { public function __construct( $query, $moduleName ) { parent::__construct( $query, $moduleName, 'am' ); diff --git a/includes/api/ApiQueryAllpages.php b/includes/api/ApiQueryAllPages.php similarity index 99% rename from includes/api/ApiQueryAllpages.php rename to includes/api/ApiQueryAllPages.php index e003ee9115..f3254c5b5d 100644 --- a/includes/api/ApiQueryAllpages.php +++ b/includes/api/ApiQueryAllPages.php @@ -29,7 +29,7 @@ * * @ingroup API */ -class ApiQueryAllpages extends ApiQueryGeneratorBase { +class ApiQueryAllPages extends ApiQueryGeneratorBase { public function __construct( $query, $moduleName ) { parent::__construct( $query, $moduleName, 'ap' ); diff --git a/includes/api/ApiQueryFilearchive.php b/includes/api/ApiQueryFilearchive.php index be995f3086..7bf97d3ec0 100644 --- a/includes/api/ApiQueryFilearchive.php +++ b/includes/api/ApiQueryFilearchive.php @@ -6,7 +6,7 @@ * * Copyright © 2010 Sam Reed * Copyright © 2008 Vasiliev Victor vasilvv@gmail.com, - * based on ApiQueryAllpages.php + * based on ApiQueryAllPages.php * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by -- 2.20.1