jenkins-bot has submitted this change and it was merged.

Change subject: Use a local (relative) URL as action in forms created by 
SpecialModifyEntity
......................................................................


Use a local (relative) URL as action in forms created by SpecialModifyEntity

Needed for mobile, because otherwise we will send people to the desktop
site for submitting their changes.

Change-Id: I3f3acec4e227139dc2e54ba9067080ce5cec2dad
(cherry picked from commit e8b7c164035d16f65d3f1fbe0044a9926dede926)
---
M repo/includes/specials/SpecialModifyEntity.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Hoo man: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/repo/includes/specials/SpecialModifyEntity.php 
b/repo/includes/specials/SpecialModifyEntity.php
index ed13cdb..36a73de 100644
--- a/repo/includes/specials/SpecialModifyEntity.php
+++ b/repo/includes/specials/SpecialModifyEntity.php
@@ -168,7 +168,7 @@
                                'form',
                                array(
                                        'method' => 'post',
-                                       'action' => 
$this->getPageTitle()->getFullUrl(),
+                                       'action' => 
$this->getPageTitle()->getLocalURL(),
                                        'name' => strtolower( $this->getName() 
),
                                        'id' => 'wb-' . strtolower( 
$this->getName() ) . '-form1',
                                        'class' => 'wb-form'

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I3f3acec4e227139dc2e54ba9067080ce5cec2dad
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: wmf/1.27.0-wmf.3b
Gerrit-Owner: Hoo man <[email protected]>
Gerrit-Reviewer: Addshore <[email protected]>
Gerrit-Reviewer: Hoo man <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to