X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FdumpIterator.php;h=20e94594ebdf45f2c58ca69198eecc174f1bfb2f;hp=751932d73f6a4dca2c86b532287c684b43fa4748;hb=a253c6d56cfa524f52379b8bf79bd4cd40143285;hpb=1de7117197761961736ea43b237599569eee93a2 diff --git a/maintenance/dumpIterator.php b/maintenance/dumpIterator.php index 751932d73f..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; }