jenkins-bot has submitted this change and it was merged.
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(-)
Approvals:
Aude: Looks good to me, approved
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: Iea58553d58f41c477776646d1722f3c9419209e5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: wmf/1.25wmf12c
Gerrit-Owner: Aude <[email protected]>
Gerrit-Reviewer: Aude <[email protected]>
Gerrit-Reviewer: Hoo man <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits