X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcheckImages.php;h=3e5739309633d6dcd6e051aead26cee3dc0b44c6;hb=70f51388a6d4f1e50af884e37ea33681880b72d8;hp=9a8203f99c53dd11c1fd98783aafb2c3b81e6a6c;hpb=74174fca253b9a759d7402f09b7fc37d5de0e9be;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/checkImages.php b/maintenance/checkImages.php index 9a8203f99c..3e57393096 100644 --- a/maintenance/checkImages.php +++ b/maintenance/checkImages.php @@ -37,15 +37,15 @@ class CheckImages extends Maintenance { public function execute() { $start = ''; - $dbr = $this->getDB( DB_SLAVE ); + $dbr = $this->getDB( DB_REPLICA ); $numImages = 0; $numGood = 0; $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;