Merge "Use native ES5 Array prototype methods instead of jQuery"
[lhc/web/wiklou.git] / includes / specials / SpecialWatchlist.php
index 2ad70a6..7b3f25c 100644 (file)
@@ -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 );
                }