X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialWatchlist.php;h=7b3f25c8382e184e43955c659024c0ebaaca9bda;hb=f6de67738dcc8b25c1343e2b1cb244641f8ede91;hp=2ad70a67a83353947b105561271bdd45a936689b;hpb=015055b17b706a83d18ae58e944e52392a13b460;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialWatchlist.php b/includes/specials/SpecialWatchlist.php index 2ad70a67a8..7b3f25c838 100644 --- a/includes/specials/SpecialWatchlist.php +++ b/includes/specials/SpecialWatchlist.php @@ -486,7 +486,7 @@ class SpecialWatchlist extends ChangesListSpecialPage { $output = $this->getOutput(); # Show a message about replica DB lag, if applicable - $lag = wfGetLB()->safeGetLag( $dbr ); + $lag = MediaWikiServices::getInstance()->getDBLoadBalancer()->safeGetLag( $dbr ); if ( $lag > 0 ) { $output->showLagWarning( $lag ); }