if ( $this->hasOption( 'use-master' ) ) {
$dbr = $this->getDB( DB_MASTER );
} else {
- $dbr = $this->getDB( DB_SLAVE, 'vslow' );
+ $dbr = $this->getDB( DB_REPLICA, 'vslow' );
}
$counter = new SiteStatsInit( $dbr );
$result = $counter->articles();
}
}
-$maintClass = "UpdateArticleCount";
+$maintClass = UpdateArticleCount::class;
require_once RUN_MAINTENANCE_IF_MAIN;