r97684 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97683‎ | r97684 | r97685 >
Date:23:40, 20 September 2011
Author:preilly
Status:ok
Tags:
Comment:
mft r97682
Modified paths:
  • /branches/wmf/1.18wmf1/extensions/MobileFrontend/views/information/disable.html.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/extensions/MobileFrontend/views/information/disable.html.php
@@ -2,22 +2,23 @@
33
44 $lang = self::$code;
55 $currentURL = self::$currentURL;
 6+$currentURL = str_replace('&mobileaction=disable_mobile_site', '', $currentURL);
67
78 $disableHtml = <<<EOT
8 - <h1>
9 - {$areYouSure}
10 - </h1>
11 - <p>
12 - {$explainDisable}
13 - </p>
14 - <div id='disableButtons'>
15 - <form action='http://{$lang}.wikipedia.org/w/mobileRedirect.php' method='get'>
16 - <input name='to' type='hidden' value='{$currentURL}' />
17 - <input name='expires_in_days' type='hidden' value='3650' />
18 - <button id='disableButton' type='submit'>{$disableButton}</button>
19 - </form>
20 - <form action='/' method='get'>
21 - <button id='backButton' type='submit'>{$backButton}</button>
22 - </form>
23 - </div>
 9+ <h1>
 10+ {$areYouSure}
 11+ </h1>
 12+ <p>
 13+ {$explainDisable}
 14+ </p>
 15+ <div id='disableButtons'>
 16+ <form action='http://{$lang}.wikipedia.org/w/mobileRedirect.php' method='get'>
 17+ <input name='to' type='hidden' value='{$currentURL}' />
 18+ <input name='expires_in_days' type='hidden' value='3650' />
 19+ <button id='disableButton' type='submit'>{$disableButton}</button>
 20+ </form>
 21+ <form action='/' method='get'>
 22+ <button id='backButton' type='submit'>{$backButton}</button>
 23+ </form>
 24+ </div>
2425 EOT;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r97682fix for bug 31049 - Disable mobile site linkpreilly23:22, 20 September 2011

Status & tagging log