// Autodetect mode...
$backgroundMode = wfGetLB()->getServerCount() > 1 ||
( $dbw instanceof DatabaseMysql && version_compare( $dbver, '4.1' ) < 0 );
-
+
if ( $this->hasOption( 'background' ) ) {
$backgroundMode = true;
} elseif ( $this->hasOption( 'quick' ) ) {
}
$maintClass = "InitEditCount";
-require_once( DO_MAINTENANCE );
+require_once( RUN_MAINTENANCE_IF_MAIN );