From: Alexandre Emsenhuber Date: Tue, 4 Oct 2011 16:51:37 +0000 (+0000) Subject: Fix for r98756: $wgDefaultExternalStore can also be a string X-Git-Tag: 1.31.0-rc.0~27274 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=42988dca6d19ddb278e90e17728b2c3a10cb12f1;p=lhc%2Fweb%2Fwiklou.git Fix for r98756: $wgDefaultExternalStore can also be a string --- diff --git a/includes/ExternalStoreDB.php b/includes/ExternalStoreDB.php index 552c310992..fee49f26cd 100644 --- a/includes/ExternalStoreDB.php +++ b/includes/ExternalStoreDB.php @@ -34,7 +34,7 @@ class ExternalStoreDB { $wiki = isset($this->mParams['wiki']) ? $this->mParams['wiki'] : false; $lb =& $this->getLoadBalancer( $cluster ); - if ( !in_array( "DB://" . $cluster, $wgDefaultExternalStore ) ) { + if ( !in_array( "DB://" . $cluster, (array)$wgDefaultExternalStore ) ) { wfDebug( "read only external store" ); $lb->allowLagged(true); } else {