From 6f67d9254e962be478fd8f3e7531e4dcf8dcfd42 Mon Sep 17 00:00:00 2001 From: Edward Chernenko Date: Wed, 1 Jan 2025 07:05:06 +0300 Subject: [PATCH] (1.43) Use getReplicaDatabase() --- includes/NavigationTemplate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/NavigationTemplate.php b/includes/NavigationTemplate.php index 7434d2e..38195c2 100644 --- a/includes/NavigationTemplate.php +++ b/includes/NavigationTemplate.php @@ -58,7 +58,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();