Aude has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/67887


Change subject: Fix site link edit link in ItemView
......................................................................

Fix site link edit link in ItemView

Change-Id: I371fd347221443624a59b0e9047b81b9917780fb
---
M repo/includes/ItemView.php
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/87/67887/1

diff --git a/repo/includes/ItemView.php b/repo/includes/ItemView.php
index 59a7e66..d9163c0 100644
--- a/repo/includes/ItemView.php
+++ b/repo/includes/ItemView.php
@@ -99,6 +99,7 @@
 
                        } else {
                                $languageCode = $site->getLanguageCode();
+                               $siteId = $site->getGlobalId();
 
                                // TODO: for non-JS, also set the dir attribute 
on the link cell;
                                // but do not build language objects for each 
site since it causes too much load
@@ -110,7 +111,7 @@
                                        htmlspecialchars( $languageCode ), // 
TODO: get an actual site id rather then just the language code
                                        htmlspecialchars( $link->getUrl() ),
                                        htmlspecialchars( $link->getPage() ),
-                                       $this->getHtmlForEditSection( $item, 
$lang, $editLink . '/' . $languageCode, 'td' )
+                                       $this->getHtmlForEditSection( $item, 
$lang, $editLink . '/' . $siteId, 'td' )
                                );
                        }
                }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I371fd347221443624a59b0e9047b81b9917780fb
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

Reply via email to