Use ConnectionProvider instead of LoadBalancerFactory

This requires 1.42. That works as this codebase already requires
1.43 via extension.json.

Change-Id: If1f194a3cea3b8d45d98183e294d65fe8568f7ab
This commit is contained in:
thiemowmde 2024-08-11 17:27:28 +02:00
parent 2fde400edc
commit 0afb81f8da

View file

@ -858,7 +858,7 @@ class SpecialAbuseLog extends AbuseFilterSpecialPage {
*/
public static function getPrivateDetailsRow( Authority $authority, $id ) {
$afPermManager = AbuseFilterServices::getPermissionManager();
$dbr = MediaWikiServices::getInstance()->getDBLoadBalancerFactory()->getReplicaDatabase();
$dbr = MediaWikiServices::getInstance()->getConnectionProvider()->getReplicaDatabase();
$row = $dbr->newSelectQueryBuilder()
->select( [ 'afl_id', 'afl_user_text', 'afl_filter_id', 'afl_global', 'afl_timestamp', 'afl_ip',