Index: trunk/phase3/maintenance/rebuildFileCache.php |
— | — | @@ -26,7 +26,7 @@ |
27 | 27 | public function __construct() { |
28 | 28 | parent::__construct(); |
29 | 29 | $this->mDescription = "Build file cache for content pages"; |
30 | | - $this->addArgs( array( 'start' ) ); |
| 30 | + //$this->addArgs( array( 'start' ) ); |
31 | 31 | $this->addOption( 'overwrite', 'Refresh page cache', false ); |
32 | 32 | $this->setBatchSize( 100 ); |
33 | 33 | } |
— | — | @@ -38,7 +38,7 @@ |
39 | 39 | $this->error( "Nothing to do -- \$wgUseFileCache is disabled.", true ); |
40 | 40 | } |
41 | 41 | $wgDisableCounters = false; |
42 | | - $start = $this->getArg( 0, 0 ); |
| 42 | + $start = $this->getArg( 0, "0" ); |
43 | 43 | if( !ctype_digit($start) ) { |
44 | 44 | $this->error( "Invalid value for start parameter.", true ); |
45 | 45 | } |