resources: Make manageForeignResources a regular maint script
The maintenance script was previously in a subdirectory which is a bit unusual. It's now a regular maintenance script, with the YAML file in a more discoverable place as well. Change-Id: I38690f23dbe89839bee0e1d43ecfd68adeb19c0f
This commit is contained in:
parent
0449f653c7
commit
f8fcff31aa
3 changed files with 3 additions and 3 deletions
|
|
@ -851,7 +851,7 @@ $wgAutoloadLocalClasses = [
|
|||
'Maintenance' => __DIR__ . '/maintenance/Maintenance.php',
|
||||
'MakeTestEdits' => __DIR__ . '/maintenance/makeTestEdits.php',
|
||||
'MalformedTitleException' => __DIR__ . '/includes/title/MalformedTitleException.php',
|
||||
'ManageForeignResources' => __DIR__ . '/maintenance/resources/manageForeignResources.php',
|
||||
'ManageForeignResources' => __DIR__ . '/maintenance/manageForeignResources.php',
|
||||
'ManageJobs' => __DIR__ . '/maintenance/manageJobs.php',
|
||||
'ManualLogEntry' => __DIR__ . '/includes/logging/LogEntry.php',
|
||||
'MapCacheLRU' => __DIR__ . '/includes/libs/MapCacheLRU.php',
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
* @ingroup Maintenance
|
||||
*/
|
||||
|
||||
require_once __DIR__ . '/../Maintenance.php';
|
||||
require_once __DIR__ . '/Maintenance.php';
|
||||
|
||||
/**
|
||||
* Manage foreign resources registered with ResourceLoader.
|
||||
|
|
@ -55,7 +55,7 @@ TEXT
|
|||
public function execute() {
|
||||
global $IP;
|
||||
$frm = new ForeignResourceManager(
|
||||
__DIR__ . '/foreign-resources.yaml',
|
||||
"{$IP}/resources/lib/foreign-resources.yaml",
|
||||
"{$IP}/resources/lib",
|
||||
function ( $text ) {
|
||||
$this->output( $text );
|
||||
Loading…
Reference in a new issue