X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FrecountCategories.php;h=838405af3d2afa9fd26dd62db2eb8c527b4b56d3;hb=2e3696b224b6baf4b71c61331645724a90375f39;hp=ed6a357b36e867a07b28436e217057492b587b55;hpb=9e34eeff23fdd46a8e9bddfbab39d45eab232827;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/recountCategories.php b/maintenance/recountCategories.php index ed6a357b36..838405af3d 100644 --- a/maintenance/recountCategories.php +++ b/maintenance/recountCategories.php @@ -98,7 +98,7 @@ TEXT protected function doWork() { $this->output( "Finding up to {$this->getBatchSize()} drifted rows " . - "starting at cat_id {$this->getBatchSize()}...\n" ); + "greater than cat_id {$this->minimumId}...\n" ); $countingConds = [ 'cl_to = cat_title' ]; if ( $this->mode === 'subcats' ) { @@ -156,7 +156,7 @@ TEXT [ "cat_{$this->mode}" => $row->count ], [ 'cat_id' => $row->cat_id, - "cat_{$this->mode} != {$row->count}", + "cat_{$this->mode} != " . (int)( $row->count ), ], __METHOD__ ); $affectedRows += $dbw->affectedRows(); @@ -168,5 +168,5 @@ TEXT } } -$maintClass = 'RecountCategories'; +$maintClass = RecountCategories::class; require_once RUN_MAINTENANCE_IF_MAIN;