if ( $count == 0 ) {
$lbFactory = $services->getDBLoadBalancerFactory();
$lbFactory->waitForReplication( [
- 'wiki' => wfWikiID(), 'timeout' => self::REPLICATION_WAIT_TIMEOUT ] );
+ 'domain' => $lbFactory->getLocalDomainID(),
+ 'timeout' => self::REPLICATION_WAIT_TIMEOUT
+ ] );
}
$this->db->insert( 'templatelinks',
[