Skip to content

Commit

Permalink
Support for MediaWiki 1.41 (#28)
Browse files Browse the repository at this point in the history
Addressing #27 by updating constructor in TemporaryPasswordPrimaryAuthenticationProvider to use getDBLoadBalancerFactory.
  • Loading branch information
berianwilliams authored Nov 24, 2024
1 parent e3a5dc1 commit dc5c97c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ForumAuthManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down Expand Up @@ -110,4 +110,4 @@ public function providerAllowsPropertyChange( /*string*/ $property ): bool
return false;
return true;
}
}
}

0 comments on commit dc5c97c

Please sign in to comment.