Jdlrobson has uploaded a new change for review.

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


Change subject: Rename scriptUrl to wgScript
......................................................................

Rename scriptUrl to wgScript

consistent with desktop skin template property name

Change-Id: I8c1c033210ffa1b93b7302a4187d7f78df5c0ee6
---
M includes/skins/SkinMobileBase.php
M includes/skins/SkinMobileTemplate.php
M includes/skins/SkinMobileWML.php
3 files changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/43/58443/1

diff --git a/includes/skins/SkinMobileBase.php 
b/includes/skins/SkinMobileBase.php
index 3b20578..aeedfb9 100644
--- a/includes/skins/SkinMobileBase.php
+++ b/includes/skins/SkinMobileBase.php
@@ -108,7 +108,7 @@
 
                $tpl = $this->setupTemplate( $this->template );
                $tpl->setRef( 'skin', $this );
-               $tpl->set( 'scriptUrl', wfScript() );
+               $tpl->set( 'wgScript', wfScript() );
 
                $url = MobileContext::singleton()->getDesktopUrl( wfExpandUrl(
                        $this->getRequest()->appendQuery( 
'mobileaction=toggle_view_desktop' )
diff --git a/includes/skins/SkinMobileTemplate.php 
b/includes/skins/SkinMobileTemplate.php
index 6e5d0b3..968040a 100644
--- a/includes/skins/SkinMobileTemplate.php
+++ b/includes/skins/SkinMobileTemplate.php
@@ -124,7 +124,7 @@
                }
                ?>
                <?php $this->html( 'menuButton' ) ?>
-               <form id="mw-mf-searchForm" action="<?php $this->text( 
'scriptUrl' ) ?>" class="search-box" method="get">
+               <form id="mw-mf-searchForm" action="<?php $this->text( 
'wgScript' ) ?>" class="search-box" method="get">
                        <input type="hidden" value="Special:Search" 
name="title" />
                        <div id="mw-mf-sq" class="divclearable">
                                <input type="search" name="search" 
id="searchInput" size="22" value="<?php $this->text( 'searchField' )
diff --git a/includes/skins/SkinMobileWML.php b/includes/skins/SkinMobileWML.php
index 3722124..78266ff 100644
--- a/includes/skins/SkinMobileWML.php
+++ b/includes/skins/SkinMobileWML.php
@@ -28,7 +28,7 @@
                </template>
                <p><input emptyok="true" format="*M" type="text" name="search" 
value="" size="16" />
                        <do type="accept" label="<?php $this->msg( 
'mobile-frontend-search-submit' ) ?>">
-                               <go href="<?php $this->text( 'scriptUrl' ) 
?>?title=Special%3ASearch&amp;search=<?php $this->text( 'searchField' ) 
?>"></go></do>
+                               <go href="<?php $this->text( 'wgScript' ) 
?>?title=Special%3ASearch&amp;search=<?php $this->text( 'searchField' ) 
?>"></go></do>
                </p>
                <?php $this->html( 'bodytext' ) ?>
        </wml>

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8c1c033210ffa1b93b7302a4187d7f78df5c0ee6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>

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

Reply via email to