public function execute() {
if ( !$this->hasArg() )
$this->error( "No query specified. Specify the query as a command line parameter.", true );
-
+
$query = $this->getArg();
$wait = $this->getOption( 'wait', 5 );
$n = 1;
$maintClass = "BatchedQueryRunner";
-require_once( DO_MAINTENANCE );
+require_once( RUN_MAINTENANCE_IF_MAIN );