jenkins-bot has submitted this change and it was merged.
Change subject: Get rid of getPrefixedId in RepoLinker
......................................................................
Get rid of getPrefixedId in RepoLinker
Change-Id: I28f39af3a5421aa62619cddccf3100c1e41fd478
---
M client/includes/RepoLinker.php
1 file changed, 4 insertions(+), 1 deletion(-)
Approvals:
Addshore: Looks good to me, approved
jenkins-bot: Verified
diff --git a/client/includes/RepoLinker.php b/client/includes/RepoLinker.php
index c35c631..ab4fc11 100644
--- a/client/includes/RepoLinker.php
+++ b/client/includes/RepoLinker.php
@@ -2,6 +2,8 @@
namespace Wikibase;
+use Wikibase\Client\WikibaseClient;
+
/**
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -100,7 +102,8 @@
* @return string
*/
public function repoItemUrl( EntityId $entityId ) {
- $prefixedId = $entityId->getPrefixedId();
+ $idFormatter =
WikibaseClient::getDefaultInstance()->getEntityIdFormatter();
+ $prefixedId = $idFormatter->format( $entityId );
$itemNamespace = $this->getNamespace( Item::ENTITY_TYPE );
--
To view, visit https://gerrit.wikimedia.org/r/77336
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I28f39af3a5421aa62619cddccf3100c1e41fd478
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <[email protected]>
Gerrit-Reviewer: Addshore <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits