X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdumpTextPass.php;h=c6e9aad646b68a4e26d42eddb68425124799593c;hb=8ac073311558aff07799c585c724ba5e31e2cd0b;hp=581f0d7b4d37cb8bb49833853398128efc5f8d35;hpb=fa82f6e0567e4562b3386efaaed30f575d1b1083;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/dumpTextPass.php b/maintenance/dumpTextPass.php index 581f0d7b4d..c6e9aad646 100644 --- a/maintenance/dumpTextPass.php +++ b/maintenance/dumpTextPass.php @@ -33,7 +33,12 @@ use Wikimedia\Rdbms\IMaintainableDatabase; * @ingroup Maintenance */ class TextPassDumper extends BackupDumper { + /** @var BaseDump */ public $prefetch = null; + /** @var string|bool */ + private $thisPage; + /** @var string|bool */ + private $thisRev; // when we spend more than maxTimeAllowed seconds on this run, we continue // processing until we write out the next complete page, then save output file(s), @@ -583,8 +588,7 @@ TEXT if ( $text === false && isset( $this->prefetch ) && $prefetchNotTried ) { $prefetchNotTried = false; $tryIsPrefetch = true; - $text = $this->prefetch->prefetch( intval( $this->thisPage ), - intval( $this->thisRev ) ); + $text = $this->prefetch->prefetch( (int)$this->thisPage, (int)$this->thisRev ); if ( $text === null ) { $text = false;