Hoo man has submitted this change and it was merged.

Change subject: Fix usage of SimpleSiteLink in PropertyParserFunction
......................................................................


Fix usage of SimpleSiteLink in PropertyParserFunction

Change-Id: Ic8febb88276a100a875ae9e0c120609ee6acc0e4
---
M client/includes/parserhooks/PropertyParserFunction.php
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Hoo man: Verified; Looks good to me, approved



diff --git a/client/includes/parserhooks/PropertyParserFunction.php 
b/client/includes/parserhooks/PropertyParserFunction.php
index e0e0b0e..e33c1cd 100644
--- a/client/includes/parserhooks/PropertyParserFunction.php
+++ b/client/includes/parserhooks/PropertyParserFunction.php
@@ -159,11 +159,11 @@
         */
        public static function render( \Parser $parser, $propertyLabel ) {
                wfProfileIn( __METHOD__ );
-               $site = \Sites::singleton()->getSite( Settings::get( 
'siteGlobalID' ) );
+               $siteId = Settings::get( 'siteGlobalID' );
 
                $siteLinkLookup = 
WikibaseClient::getDefaultInstance()->getStore()->getSiteLinkTable();
                $entityId = $siteLinkLookup->getEntityIdForSiteLink( //FIXME: 
method not in the interface
-                       new SimpleSiteLink( $site, 
$parser->getTitle()->getFullText() )
+                       new SimpleSiteLink( $siteId, 
$parser->getTitle()->getFullText() )
                );
 
                // @todo handle when site link is not there, such as site link 
/ entity has been deleted...

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic8febb88276a100a875ae9e0c120609ee6acc0e4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Aude <[email protected]>
Gerrit-Reviewer: Hoo man <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to