Aude has uploaded a new change for review.
https://gerrit.wikimedia.org/r/50944
Change subject: Remove href link to Special:CreateItem for none link in client
......................................................................
Remove href link to Special:CreateItem for none link in client
- a page may have (none) link but already be linked to an item with only one
site link
- if we do put a link, then we need to do it differently
Change-Id: I33b159de87dd4f9ff27faabbdeba5f6e2a199385
---
M client/WikibaseClient.hooks.php
1 file changed, 0 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase
refs/changes/44/50944/1
diff --git a/client/WikibaseClient.hooks.php b/client/WikibaseClient.hooks.php
index 198f95b..4ee53b8 100644
--- a/client/WikibaseClient.hooks.php
+++ b/client/WikibaseClient.hooks.php
@@ -607,7 +607,6 @@
// Placeholder in case the page doesn't have
any langlinks yet
// self::onBeforePageDisplay adds the
JavaScript module which will overwrite this with a link
$template->data['language_urls'][] = array(
- 'href' => ClientUtils::repoArticleUrl(
"Special:CreateItem/$siteId/$titleText" ),
'text' => wfMessage( 'parentheses',
wfMessage( 'wikibase-nolanglinks' )->escaped() ),
'id' => 'wbc-linkToItem',
'class' => 'wbc-editpage',
--
To view, visit https://gerrit.wikimedia.org/r/50944
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I33b159de87dd4f9ff27faabbdeba5f6e2a199385
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Aude <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits