Hoo man has uploaded a new change for review.

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

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
---
M repo/includes/specials/SpecialModifyEntity.php
1 file changed, 1 insertion(+), 1 deletion(-)


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

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/249980
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3f3acec4e227139dc2e54ba9067080ce5cec2dad
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Hoo man <[email protected]>

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

Reply via email to