mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
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:
parent
2fde400edc
commit
0afb81f8da
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue