X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FrebuildImages.php;h=df2ab042b1e85747ea191f02e5d9315adf5a46bd;hb=552d285184a2ba312700304c7e7414d567966bd9;hp=3de007085950c100e0e8dee250d95a7af275d712;hpb=54c93f1d384cd5accd2db2ebbb911e4d627c2980;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/rebuildImages.php b/maintenance/rebuildImages.php index 3de0070859..df2ab042b1 100644 --- a/maintenance/rebuildImages.php +++ b/maintenance/rebuildImages.php @@ -41,12 +41,32 @@ use Wikimedia\Rdbms\IMaintainableDatabase; * @ingroup Maintenance */ class ImageBuilder extends Maintenance { - /** * @var IMaintainableDatabase */ protected $dbw; + /** @var bool */ + private $dryrun; + + /** @var LocalRepo|null */ + private $repo; + + /** @var int */ + private $updated; + + /** @var int */ + private $processed; + + /** @var int */ + private $count; + + /** @var int */ + private $startTime; + + /** @var string */ + private $table; + function __construct() { parent::__construct(); @@ -79,7 +99,7 @@ class ImageBuilder extends Maintenance { * @return LocalRepo */ function getRepo() { - if ( !isset( $this->repo ) ) { + if ( $this->repo === null ) { $this->repo = RepoGroup::singleton()->getLocalRepo(); }