mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-27 17:50:38 +00:00
Rename files (#10)
This commit is contained in:
parent
f02f247e64
commit
f3d702496e
|
@ -27,7 +27,7 @@
|
|||
"PortableInfobox": "i18n"
|
||||
},
|
||||
"ExtensionMessagesFiles": {
|
||||
"PortableInfoboxAliases": "includes/PortableInfobox.alias.php"
|
||||
"PortableInfoboxAliases": "includes/PortableInfoboxAliases.php"
|
||||
},
|
||||
"ResourceModules": {
|
||||
"ext.PortableInfobox.scripts": {
|
||||
|
@ -50,7 +50,7 @@
|
|||
"remoteExtPath": "PortableInfobox"
|
||||
},
|
||||
"AutoloadClasses": {
|
||||
"PortableInfoboxHooks": "includes/PortableInfobox.hooks.php",
|
||||
"PortableInfoboxHooks": "includes/PortableInfoboxHooks.php",
|
||||
"PortableInfoboxDataService": "includes/services/PortableInfoboxDataService.php",
|
||||
"PortableInfoboxRenderService": "includes/services/PortableInfoboxRenderService.php",
|
||||
"PortableInfoboxErrorRenderService": "includes/services/PortableInfoboxErrorRenderService.php",
|
||||
|
@ -84,8 +84,8 @@
|
|||
"PortableInfoboxParserTagController": "includes/controllers/PortableInfoboxParserTagController.php",
|
||||
"ApiPortableInfobox": "includes/controllers/ApiPortableInfobox.php",
|
||||
"ApiQueryPortableInfobox": "includes/controllers/ApiQueryPortableInfobox.php",
|
||||
"ApiQueryAllinfoboxes": "includes/controllers/ApiQueryAllinfoboxes.php",
|
||||
"AllinfoboxesQueryPage": "includes/querypage/AllinfoboxesQueryPage.php"
|
||||
"ApiQueryAllInfoboxes": "includes/controllers/ApiQueryAllInfoboxes.php",
|
||||
"AllInfoboxesQueryPage": "includes/querypage/AllInfoboxesQueryPage.php"
|
||||
},
|
||||
"Hooks": {
|
||||
"ParserFirstCallInit": "PortableInfoboxParserTagController::parserTagInit",
|
||||
|
@ -97,7 +97,7 @@
|
|||
"ResourceLoaderRegisterModules": "PortableInfoboxHooks::onResourceLoaderRegisterModules"
|
||||
},
|
||||
"SpecialPages": {
|
||||
"AllInfoboxes": "AllinfoboxesQueryPage"
|
||||
"AllInfoboxes": "AllInfoboxesQueryPage"
|
||||
},
|
||||
"APIModules": {
|
||||
"infobox": "ApiPortableInfobox"
|
||||
|
@ -106,7 +106,7 @@
|
|||
"infobox": "ApiQueryPortableInfobox"
|
||||
},
|
||||
"APIListModules": {
|
||||
"allinfoboxes": "ApiQueryAllinfoboxes"
|
||||
"allinfoboxes": "ApiQueryAllInfoboxes"
|
||||
},
|
||||
"manifest_version": 1
|
||||
}
|
||||
|
|
|
@ -1,9 +1,4 @@
|
|||
<?php
|
||||
/**
|
||||
* Aliases for the PortableInfobox extension.
|
||||
*
|
||||
* @ingroup PortableInfobox
|
||||
*/
|
||||
|
||||
$specialPageAliases = [];
|
||||
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
use MediaWiki\MediaWikiServices;
|
||||
|
||||
// phpcs:ignore MediaWiki.Files.ClassMatchesFilename.NotMatch
|
||||
class PortableInfoboxHooks {
|
||||
|
||||
public static function onWgQueryPages( array &$queryPages = [] ) {
|
|
@ -2,9 +2,10 @@
|
|||
|
||||
use MediaWiki\MediaWikiServices;
|
||||
|
||||
class ApiQueryAllinfoboxes extends ApiQueryBase {
|
||||
class ApiQueryAllInfoboxes extends ApiQueryBase {
|
||||
|
||||
private const CACHE_TTL = 86400;
|
||||
|
||||
public const MCACHE_KEY = 'allinfoboxes-list';
|
||||
|
||||
public function execute() {
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
class AllinfoboxesQueryPage extends PageQueryPage {
|
||||
class AllInfoboxesQueryPage extends PageQueryPage {
|
||||
|
||||
private const ALL_INFOBOXES_TYPE = 'AllInfoboxes';
|
||||
|
Loading…
Reference in a new issue