wfGetDB() has been deprecated since 1.39 (or more?) and it's better to inject LBF and call ::getReplicaDatabase() or ::getPrimaryDatabase() which is not straightforward in classes but for static functions, there is no way to inject the method so we can simply call MediaWikiServices::getInstance()->getDBLoadBalancerFactory() While I was here, I migrated one call to SelectQueryBuilder. Bug: T330641 Change-Id: Idd2278cef647035dce05a2d461a620e145fe1167 |
||
|---|---|---|
| .. | ||
| Hook | ||
| CategoryMembershipChange.php | ||
| ChangesFeed.php | ||
| ChangesList.php | ||
| ChangesListBooleanFilter.php | ||
| ChangesListBooleanFilterGroup.php | ||
| ChangesListFilter.php | ||
| ChangesListFilterGroup.php | ||
| ChangesListStringOptionsFilter.php | ||
| ChangesListStringOptionsFilterGroup.php | ||
| EnhancedChangesList.php | ||
| OldChangesList.php | ||
| RCCacheEntry.php | ||
| RCCacheEntryFactory.php | ||
| RecentChange.php | ||