X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcheckImages.php;h=f05d15c0af2d7bb3f1f85aa137ed19112aa9bf04;hb=6a8de1f1aa0bcdbf9385a4f9a01a4ef3bb70be57;hp=976192711f22bcdc033ed3376d6b5871d71d9c80;hpb=0e289eae349ce35d03af3e8fc10e9ad2e0119f26;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/checkImages.php b/maintenance/checkImages.php index 976192711f..f05d15c0af 100644 --- a/maintenance/checkImages.php +++ b/maintenance/checkImages.php @@ -31,7 +31,7 @@ class CheckImages extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = "Check images to see if they exist, are readable, etc"; + $this->addDescription( 'Check images to see if they exist, are readable, etc' ); $this->setBatchSize( 1000 ); } @@ -44,8 +44,8 @@ class CheckImages extends Maintenance { $repo = RepoGroup::singleton()->getLocalRepo(); do { - $res = $dbr->select( 'image', '*', array( 'img_name > ' . $dbr->addQuotes( $start ) ), - __METHOD__, array( 'LIMIT' => $this->mBatchSize ) ); + $res = $dbr->select( 'image', '*', [ 'img_name > ' . $dbr->addQuotes( $start ) ], + __METHOD__, [ 'LIMIT' => $this->mBatchSize ] ); foreach ( $res as $row ) { $numImages++; $start = $row->img_name;