r113973 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113972‎ | r113973 | r113974 >
Date:23:10, 15 March 2012
Author:awjrichards
Status:ok
Tags:
Comment:
Modified paths:
  • /branches/wmf/1.19wmf1/extensions/MobileFrontend/templates/DisableTemplate.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.19wmf1/extensions/MobileFrontend/templates/DisableTemplate.php
@@ -8,7 +8,9 @@
99
1010 public function getHTML() {
1111
12 - $currentURL = str_replace( '&mobileaction=disable_mobile_site', '', $this->data['currentURL'] ); // TODO: $currentURl is unused
 12+
 13+ $currentURL = str_replace( '&mobileaction=disable_mobile_site', '', $this->data['currentURL'] );
 14+ $currentURL = str_replace( '&useformat=mobile', '', $currentURL );
1315 $mobileRedirectFormAction = $this->data['mobileRedirectFormAction'];
1416
1517 $disableHtml = <<<HTML
@@ -20,7 +22,7 @@
2123 </p>
2224 <div id='disableButtons'>
2325 <form action='{$mobileRedirectFormAction}' method='get'>
24 - <input name='to' type='hidden' value='{$this->data['currentURL']}' />
 26+ <input name='to' type='hidden' value='{$currentURL}' />
2527 <input name='expires_in_days' type='hidden' value='3650' />
2628 <button id='disableButton' type='submit'>{$this->data['disableButton']}</button>
2729 </form>
Property changes on: branches/wmf/1.19wmf1/extensions/MobileFrontend/templates/DisableTemplate.php
___________________________________________________________________
Added: svn:mergeinfo
2830 Merged /trunk/extensions/MobileFrontend/templates/DisableTemplate.php:r99727,113442,113444,113471-113472,113486,113512,113553,113778,113971

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r113971Fix for bug 35249, makes disable mobile version confirmation page properly re...awjrichards23:08, 15 March 2012

Status & tagging log