requireExtension( 'DiscussionTools' ); } public function execute() { $frm = new ForeignResourceManager( __DIR__ . '/../modules/lib/foreign-resources.yaml', __DIR__ . '/../modules/lib' ); return $frm->run( 'update', 'all' ); } } $maintClass = ManageForeignResources::class; $doMaintenancePath = RUN_MAINTENANCE_IF_MAIN; if ( !( file_exists( $doMaintenancePath ) && realpath( $doMaintenancePath ) === realpath( "$basePath/maintenance/doMaintenance.php" ) ) ) { die( "Bad maintenance script location: $basePath\n" ); } require_once RUN_MAINTENANCE_IF_MAIN;