From 1d4e17a91c0afd969489a41c536161ffe7fd7458 Mon Sep 17 00:00:00 2001 From: Platonides Date: Wed, 20 Apr 2011 15:32:10 +0000 Subject: [PATCH] Follow up r86447. Support the $wiki parameter --- includes/GlobalFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 15cfb7a94a..8460c8aec1 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -3157,7 +3157,7 @@ function wfWarn( $msg, $callerOffset = 1, $level = E_USER_NOTICE ) { * @return null */ function wfWaitForSlaves( $maxLag = false, $wiki = false ) { - $lb = wfGetLB(); + $lb = wfGetLB( $wiki ); // bug 27975 - Don't try to wait for slaves if there are none // Prevents permission error when getting master position if ( $lb->getServerCount() > 1 ) { -- 2.20.1