Aude has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/180054

Change subject: Don't access sites on WikibaseClient::getEntityIdForTitle
......................................................................

Don't access sites on WikibaseClient::getEntityIdForTitle

Change-Id: Iea58553d58f41c477776646d1722f3c9419209e5
(cherry picked from commit e7ae35428dc22153d065a103336014970684c925)
---
M client/WikibaseClient.hooks.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/54/180054/1

diff --git a/client/WikibaseClient.hooks.php b/client/WikibaseClient.hooks.php
index 5cc19e5..ea3f25e 100644
--- a/client/WikibaseClient.hooks.php
+++ b/client/WikibaseClient.hooks.php
@@ -384,7 +384,7 @@
                $siteLinkLookup = 
$wikibaseClient->getStore()->getSiteLinkTable();
                return $siteLinkLookup->getEntityIdForSiteLink(
                        new SiteLink(
-                               $wikibaseClient->getSite()->getGlobalId(),
+                               $wikibaseClient->getSettings()->getSetting( 
'siteGlobalID' ),
                                $title->getFullText()
                        )
                );

-- 
To view, visit https://gerrit.wikimedia.org/r/180054
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iea58553d58f41c477776646d1722f3c9419209e5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: wmf/1.25wmf12c
Gerrit-Owner: Aude <aude.w...@gmail.com>
Gerrit-Reviewer: Hoo man <h...@online.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to