tableName calls moved inside fieldInfoMulti and removed call that existed only for...
[lhc/web/wiklou.git] / maintenance / moveBatch.php
index 878b649..bd4ef7b 100644 (file)
@@ -42,7 +42,7 @@ class MoveBatch extends Maintenance {
                $this->addOption( 'u', "User to perform move", false, true );
                $this->addOption( 'r', "Reason to move page", false, true );
                $this->addOption( 'i', "Interval to sleep between moves" );
-               $this->addArgs( array( 'listfile' ) );
+               $this->addArg( 'listfile', 'List of pages to move, newline delimited', false );
        }
        
        public function execute() {
@@ -94,7 +94,7 @@ class MoveBatch extends Maintenance {
                        if( $err !== true ) {
                                $this->output( "\nFAILED: $err" );
                        }
-                       $dbw->immediateCommit();
+                       $dbw->commit();
                        $this->output( "\n" );
        
                        if ( $interval ) {