From b68bbfb0bff55c9338126aacb6b33d022c0df6c6 Mon Sep 17 00:00:00 2001 From: CosmicAlpha Date: Wed, 20 Nov 2024 13:13:10 -0700 Subject: [PATCH] Update --- includes/Helpers/ManageWikiPermissions.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/Helpers/ManageWikiPermissions.php b/includes/Helpers/ManageWikiPermissions.php index 41cf86df2..b4c2c9186 100644 --- a/includes/Helpers/ManageWikiPermissions.php +++ b/includes/Helpers/ManageWikiPermissions.php @@ -237,9 +237,8 @@ public function commit() { private function deleteUsersFromGroup( string $group ) { $groupManager = MediaWikiServices::getInstance()->getUserGroupManager(); - $dbr = MediaWikiServices::getInstance()->getDBLoadBalancerFactory() - ->getMainLB( $this->wiki ) - ->getMaintenanceConnectionRef( DB_REPLICA, [], $this->wiki ); + $dbr = MediaWikiServices::getInstance()->getConnectionProvider() + ->getReplicaDatabase( $this->wiki ); $res = $dbr->select( 'user_groups',