Tobias Gritschacher has uploaded a new change for review.

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

Change subject: Correctly construct edit-links to SpecialPages in EntityView
......................................................................

Correctly construct edit-links to SpecialPages in EntityView

Bug: 50890
Change-Id: If59fd705eb8b9ed7fb2954c34f7013235ab428d1
---
M repo/includes/EntityView.php
1 file changed, 2 insertions(+), 3 deletions(-)


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

diff --git a/repo/includes/EntityView.php b/repo/includes/EntityView.php
index 418ce84..466d8a9 100644
--- a/repo/includes/EntityView.php
+++ b/repo/includes/EntityView.php
@@ -616,9 +616,8 @@
                        $id = ''; // can't skip this, that would confuse the 
order of parameters!
                }
 
-               return $specialpage->getPageTitle()->getLocalURL()
-                               . '/' . wfUrlencode( $id )
-                               . ( $lang === null ? '' : '/' . wfUrlencode( 
$lang->getCode() ) );
+               $subpage = wfUrlencode( $id ) . ( $lang === null ? '' : '/' . 
wfUrlencode( $lang->getCode() ) );
+               return $specialpage->getPageTitle( $subpage )->getLocalURL();
        }
 
        /**

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If59fd705eb8b9ed7fb2954c34f7013235ab428d1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Tobias Gritschacher <tobias.gritschac...@wikimedia.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to