public function execute() {
$dbw = wfGetDB( DB_MASTER );
$rl = new ResourceLoader();
- $moduleNames = array_keys( $rl->getModuleNames() );
+ $moduleNames = $rl->getModuleNames();
$moduleList = implode( ', ', array_map( array( $dbw, 'addQuotes' ), $moduleNames ) );
$limit = max( 1, intval( $this->getOption( 'batchsize', 500 ) ) );
$maxlag = intval( $this->getOption( 'max-slave-lag', 5 ) );
}
$maintClass = "CleanupRemovedModules";
-require_once( DO_MAINTENANCE );
+require_once( RUN_MAINTENANCE_IF_MAIN );