Fix for r98756: $wgDefaultExternalStore can also be a string
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 4 Oct 2011 16:51:37 +0000 (16:51 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 4 Oct 2011 16:51:37 +0000 (16:51 +0000)
includes/ExternalStoreDB.php

index 552c310..fee49f2 100644 (file)
@@ -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 {