Add the 'full' option explicitly to dumpTextPass.php.
[lhc/web/wiklou.git] / maintenance / populateContentTables.php
index b550cc2..20d6b8b 100644 (file)
@@ -92,6 +92,7 @@ class PopulateContentTables extends Maintenance {
 
                $elapsed = microtime( true ) - $t0;
                $this->writeln( "Done. Processed $this->totalCount rows in $elapsed seconds" );
+               return true;
        }
 
        /**
@@ -187,6 +188,11 @@ class PopulateContentTables extends Maintenance {
                        '',
                        __METHOD__
                );
+               if ( !$minmax || !is_numeric( $minmax->min ) || !is_numeric( $minmax->max ) ) {
+                       // No rows?
+                       $minmax = (object)[ 'min' => 1, 'max' => 0 ];
+               }
+
                $batchSize = $this->getBatchSize();
 
                for ( $startId = $minmax->min; $startId <= $minmax->max; $startId += $batchSize ) {