jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/380936 )
Change subject: Replace wfGetLB() with
MediaWikiServices::getDBLoadBalancerFactory()
......................................................................
Replace wfGetLB() with MediaWikiServices::getDBLoadBalancerFactory()
wfGetLB has been deprecated since 1.27
Change-Id: I585f2dfa6d6fa13557cf43cd5af957c9781925a0
---
M includes/GlobalBlocking.class.php
1 file changed, 5 insertions(+), 1 deletion(-)
Approvals:
Legoktm: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/GlobalBlocking.class.php
b/includes/GlobalBlocking.class.php
index f66e9d9..3946ff1 100644
--- a/includes/GlobalBlocking.class.php
+++ b/includes/GlobalBlocking.class.php
@@ -5,6 +5,9 @@
*
* @license GNU GPL v2+
*/
+
+use MediaWiki\MediaWikiServices;
+
class GlobalBlocking {
/**
* @param User $user
@@ -259,7 +262,8 @@
static function getGlobalBlockingDatabase( $dbtype ) {
global $wgGlobalBlockingDatabase;
- $lb = wfGetLB( $wgGlobalBlockingDatabase );
+ $factory =
MediaWikiServices::getInstance()->getDBLoadBalancerFactory();
+ $lb = $factory->getMainLB( $wgGlobalBlockingDatabase );
return $lb->getConnectionRef( $dbtype, 'globalblocking',
$wgGlobalBlockingDatabase );
}
--
To view, visit https://gerrit.wikimedia.org/r/380936
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I585f2dfa6d6fa13557cf43cd5af957c9781925a0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/GlobalBlocking
Gerrit-Branch: master
Gerrit-Owner: Melos <[email protected]>
Gerrit-Reviewer: Glaisher <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits