14require_once __DIR__ .
'/Maintenance.php';
15require_once __DIR__ .
'/includes/MaintenanceRunner.php';
16require_once __DIR__ .
'/includes/MaintenanceParameters.php';
19if ( !MaintenanceRunner::shouldExecute() ) {
24define(
'MEDIAWIKI',
true );
27require_once
"$IP/includes/AutoLoader.php";
31$runner->initFromWrapper( $argv );
36if ( !defined(
'MW_FINAL_SETUP_CALLBACK' ) ) {
42 $runner->setup( $settingsBuilder );
45 define(
'MW_FINAL_SETUP_CALLBACK',
'wfMaintenanceRunSetup' );
49require_once
"$IP/includes/Setup.php";
wfDetectInstallPath()
Decide and remember where mediawiki is installed.
A runner for maintenance scripts.