Hoo man has uploaded a new change for review.
https://gerrit.wikimedia.org/r/177434
Change subject: Don't access sites on WikibaseClient::getEntityIdForTitle
......................................................................
Don't access sites on WikibaseClient::getEntityIdForTitle
Change-Id: Iea58553d58f41c477776646d1722f3c9419209e5
---
M client/WikibaseClient.hooks.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase
refs/changes/34/177434/1
diff --git a/client/WikibaseClient.hooks.php b/client/WikibaseClient.hooks.php
index a10073f..2de1aba 100644
--- a/client/WikibaseClient.hooks.php
+++ b/client/WikibaseClient.hooks.php
@@ -380,7 +380,7 @@
$siteLinkLookup =
$wikibaseClient->getStore()->getSiteLinkLookup();
return $siteLinkLookup->getEntityIdForSiteLink(
new SiteLink(
- $wikibaseClient->getSite()->getGlobalId(),
+ $wikibaseClient->getSettings()->getSetting(
'siteGlobalID' ),
$title->getFullText()
)
);
--
To view, visit https://gerrit.wikimedia.org/r/177434
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: master
Gerrit-Owner: Hoo man <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits