mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-27 15:30:42 +00:00
Remove wfGetDB from comments
Bug: T357632 Change-Id: I658c2e4cf4b889075e944488501bba1bc197965a
This commit is contained in:
parent
fb1273541e
commit
f0e2af4dd7
|
@ -42,7 +42,7 @@ class AbuseFilterExaminePager extends ReverseChronologicalPager {
|
|||
Title $title,
|
||||
array $conds
|
||||
) {
|
||||
// Set database before parent constructor to avoid setting it there with wfGetDB
|
||||
// Set database before parent constructor to avoid setting it there
|
||||
$this->mDb = $dbr;
|
||||
parent::__construct( $changesList, $linkRenderer );
|
||||
$this->changesList = $changesList;
|
||||
|
|
|
@ -29,7 +29,7 @@ class GlobalAbuseFilterPager extends AbuseFilterPager {
|
|||
CentralDBManager $centralDBManager,
|
||||
array $conds
|
||||
) {
|
||||
// Set database before parent constructor to avoid setting it there with wfGetDB
|
||||
// Set database before parent constructor to avoid setting it there
|
||||
$this->mDb = $centralDBManager->getConnection( DB_REPLICA );
|
||||
parent::__construct( $page, $linkRenderer, null, $afPermManager, $specsFormatter, $conds, null, null );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue