X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FStorage%2FNameTableStoreFactory.php;h=ec364f9a6b62767898dada0f97e8bafb8012bffd;hb=6114e23890a83793614613c879835db7b7885321;hp=02ea9a765655e263d123f022b59c9974825cba20;hpb=2901b84c495edb9ebf70798e12f5695fd19c1b42;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Storage/NameTableStoreFactory.php b/includes/Storage/NameTableStoreFactory.php index 02ea9a7656..ec364f9a6b 100644 --- a/includes/Storage/NameTableStoreFactory.php +++ b/includes/Storage/NameTableStoreFactory.php @@ -94,9 +94,10 @@ class NameTableStoreFactory { if ( !isset( $infos[$tableName] ) ) { throw new \InvalidArgumentException( "Invalid table name \$tableName" ); } - if ( $wiki === wfWikiID() ) { + if ( $wiki === $this->lbFactory->getLocalDomainID() ) { $wiki = false; } + if ( isset( $this->stores[$tableName][$wiki] ) ) { return $this->stores[$tableName][$wiki]; }