mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-12-19 11:32:16 +00:00
21 lines
512 B
PHP
21 lines
512 B
PHP
|
<?php
|
||
|
|
||
|
$IP = getenv( 'MW_INSTALL_PATH' );
|
||
|
if ( $IP === false ) {
|
||
|
$IP = __DIR__ . '/../../..';
|
||
|
}
|
||
|
require_once "$IP/maintenance/Maintenance.php";
|
||
|
|
||
|
class DiscussionToolsManageForeignResources extends Maintenance {
|
||
|
public function execute() {
|
||
|
$frm = new ForeignResourceManager(
|
||
|
__DIR__ . '/../modules/lib/foreign-resources.yaml',
|
||
|
__DIR__ . '/../modules/lib'
|
||
|
);
|
||
|
return $frm->run( 'update', 'all' );
|
||
|
}
|
||
|
}
|
||
|
|
||
|
$maintClass = DiscussionToolsManageForeignResources::class;
|
||
|
require_once RUN_MAINTENANCE_IF_MAIN;
|