X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdumpIterator.php;h=20e94594ebdf45f2c58ca69198eecc174f1bfb2f;hb=203f7aba8c4d3279cd9de7cb479f08b80fb1800a;hp=e9a6bc58bfc449ac82087728d9e7d319b0fbaf0a;hpb=5612400c8271ac2762fd2ce9acfcc9a58e47f0ee;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/dumpIterator.php b/maintenance/dumpIterator.php index e9a6bc58bf..20e94594eb 100644 --- a/maintenance/dumpIterator.php +++ b/maintenance/dumpIterator.php @@ -34,9 +34,10 @@ require_once __DIR__ . '/Maintenance.php'; * @ingroup Maintenance */ abstract class DumpIterator extends Maintenance { - private $count = 0; private $startTime; + /** @var string|bool|null */ + private $from; public function __construct() { parent::__construct(); @@ -60,6 +61,7 @@ abstract class DumpIterator extends Maintenance { $revision->setTitle( Title::newFromText( rawurldecode( basename( $this->getOption( 'file' ), '.txt' ) ) ) ); + $this->from = false; $this->handleRevision( $revision ); return; @@ -131,7 +133,7 @@ abstract class DumpIterator extends Maintenance { } $this->count++; - if ( isset( $this->from ) ) { + if ( $this->from !== false ) { if ( $this->from != $title ) { return; } @@ -146,12 +148,10 @@ abstract class DumpIterator extends Maintenance { /* Stub function for processing additional options */ public function checkOptions() { - return; } /* Stub function for giving data about what was computed */ public function conclusions() { - return; } /* Core function which does whatever the maintenance script is designed to do */