X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2FStorage%2FNameTableStoreFactory.php;h=ec364f9a6b62767898dada0f97e8bafb8012bffd;hb=4ecf24c6e08edb31b0244229e8da8f9fa9c6068c;hp=02ea9a765655e263d123f022b59c9974825cba20;hpb=92e3fd2c8eb43e587195490546a5d1b8b6b2ba68;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]; }