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' ) {
[ "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();
}
}
-$maintClass = 'RecountCategories';
+$maintClass = RecountCategories::class;
require_once RUN_MAINTENANCE_IF_MAIN;