Follow up r86447. Support the $wiki parameter
authorPlatonides <platonides@users.mediawiki.org>
Wed, 20 Apr 2011 15:32:10 +0000 (15:32 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Wed, 20 Apr 2011 15:32:10 +0000 (15:32 +0000)
includes/GlobalFunctions.php

index 15cfb7a..8460c8a 100644 (file)
@@ -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 ) {