mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-27 15:50:29 +00:00
build: Move PHP files to expected paths
Principal code is in includes/*.php with the file named the same as the class it contains. The maintenance script is moved to maintenance/ for clarity. Change-Id: Icb4cdffb1bd4716e14f883d667def96671b42992
This commit is contained in:
parent
b5c9330730
commit
fa9438e5fa
|
@ -2208,12 +2208,12 @@
|
|||
"CollabPad": "SpecialCollabPad"
|
||||
},
|
||||
"AutoloadClasses": {
|
||||
"ApiVisualEditor": "ApiVisualEditor.php",
|
||||
"ApiVisualEditorEdit": "ApiVisualEditorEdit.php",
|
||||
"SpecialCollabPad": "SpecialCollabPad.php",
|
||||
"VisualEditorHooks": "VisualEditor.hooks.php",
|
||||
"VisualEditorDataModule": "VisualEditorDataModule.php",
|
||||
"VisualEditorDesktopArticleTargetInitModule": "VisualEditorDesktopArticleTargetInitModule.php"
|
||||
"ApiVisualEditor": "includes/ApiVisualEditor.php",
|
||||
"ApiVisualEditorEdit": "includes/ApiVisualEditorEdit.php",
|
||||
"SpecialCollabPad": "includes/SpecialCollabPad.php",
|
||||
"VisualEditorHooks": "includes/VisualEditorHooks.php",
|
||||
"VisualEditorDataModule": "includes/VisualEditorDataModule.php",
|
||||
"VisualEditorDesktopArticleTargetInitModule": "includes/VisualEditorDesktopArticleTargetInitModule.php"
|
||||
},
|
||||
"ConfigRegistry": {
|
||||
"visualeditor": "GlobalVarConfig::newInstance"
|
||||
|
|
|
@ -1096,7 +1096,7 @@ class VisualEditorHooks {
|
|||
'ext.visualEditor.desktopArticleTarget',
|
||||
'ext.visualEditor.rebase'
|
||||
],
|
||||
'localBasePath' => __DIR__,
|
||||
'localBasePath' => __DIR__ . '/..',
|
||||
'remoteExtPath' => 'VisualEditor',
|
||||
];
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
$maintenancePath = getenv( 'MW_INSTALL_PATH' ) !== false
|
||||
? getenv( 'MW_INSTALL_PATH' ) . '/maintenance/Maintenance.php'
|
||||
: __DIR__ . '/../../../maintenance/Maintenance.php';
|
||||
: __DIR__ . '/../../../../maintenance/Maintenance.php';
|
||||
|
||||
require_once $maintenancePath;
|
||||
|
Loading…
Reference in a new issue