Skip to content

Commit

Permalink
(1.43) Use getReplicaDatabase()
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardspec committed Jan 1, 2025
1 parent 95e771e commit a7a93ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/NavigationTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static function pfSubpageAnchorNavigation( Parser $parser, $pageName ) {
*/
protected function generate( PageReference $title ) {
$services = MediaWikiServices::getInstance();
$dbr = $services->getDBLoadBalancer()->getConnection( DB_REPLICA );
$dbr = $services->getConnectionProvider()->getReplicaDatabase();

$ns = $title->getNamespace();

Expand Down

0 comments on commit a7a93ad

Please sign in to comment.