X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdumpIterator.php;h=20e94594ebdf45f2c58ca69198eecc174f1bfb2f;hb=f1f9006707a2324505a9d97b32f07bf5a28aa37e;hp=751932d73f6a4dca2c86b532287c684b43fa4748;hpb=50f6b24ee614196aae44dd67599f4c36ac6ade0d;p=lhc%2Fweb%2Fwiklou.git 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; }