From dc5c97cb61dd9133b6e83d1da27344cf83769552 Mon Sep 17 00:00:00 2001 From: berianwilliams Date: Sun, 24 Nov 2024 17:29:58 +0000 Subject: [PATCH] Support for MediaWiki 1.41 (#28) Addressing #27 by updating constructor in TemporaryPasswordPrimaryAuthenticationProvider to use getDBLoadBalancerFactory. --- ForumAuthManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ForumAuthManager.php b/ForumAuthManager.php index 09bb43e..888b341 100644 --- a/ForumAuthManager.php +++ b/ForumAuthManager.php @@ -30,7 +30,7 @@ class ForumAuthManager extends \MediaWiki\Auth\TemporaryPasswordPrimaryAuthentic * be sent to the same user again */ public function __construct( /*array*/ $params = [] ) { - $loadBalancer = \MediaWiki\MediaWikiServices::getInstance()->getDBLoadBalancer(); + $loadBalancer = \MediaWiki\MediaWikiServices::getInstance()->getDBLoadBalancerFactory(); $userOptionsLookup = \MediaWiki\MediaWikiServices::getInstance()->getUserOptionsLookup(); parent::__construct( $loadBalancer, $userOptionsLookup, $params ); @@ -110,4 +110,4 @@ public function providerAllowsPropertyChange( /*string*/ $property ): bool return false; return true; } -} \ No newline at end of file +}