if ( $wgAllDBsAreLocalhost ) {
$host = 'localhost';
} elseif ( $this->hasOption( 'group' ) ) {
- $db = $this->getDB( DB_SLAVE, $this->getOption( 'group' ) );
+ $db = $this->getDB( DB_REPLICA, $this->getOption( 'group' ) );
$host = $db->getServer();
} else {
$lb = wfGetLB();
}
}
-$maintClass = "GetSlaveServer";
+$maintClass = GetSlaveServer::class;
require_once RUN_MAINTENANCE_IF_MAIN;