Index: branches/wmf/1.18wmf1/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -754,6 +754,7 @@ |
755 | 755 | $htmlTitle = self::$messages['mobile-frontend-opt-in-title']; |
756 | 756 | $explainOptIn = self::$messages['mobile-frontend-opt-in-explain']; |
757 | 757 | $optInMessage = self::$messages['mobile-frontend-opt-in-message']; |
| 758 | + $formAction = wfExpandUrl( Title::newMainPage()->getFullURL(), PROTO_CURRENT ); |
758 | 759 | require( 'views/layout/_search_webkit.html.php' ); |
759 | 760 | require( 'views/layout/_footmenu_default.html.php' ); |
760 | 761 | require( 'views/information/optin.html.php' ); |
— | — | @@ -778,6 +779,7 @@ |
779 | 780 | $htmlTitle = self::$messages['mobile-frontend-opt-out-title']; |
780 | 781 | $explainOptOut = self::$messages['mobile-frontend-opt-out-explain']; |
781 | 782 | $optOutMessage = self::$messages['mobile-frontend-opt-out-message']; |
| 783 | + $formAction = wfExpandUrl( Title::newMainPage()->getFullURL(), PROTO_CURRENT ); |
782 | 784 | require( 'views/layout/_search_webkit.html.php' ); |
783 | 785 | require( 'views/layout/_footmenu_default.html.php' ); |
784 | 786 | require( 'views/information/optout.html.php' ); |
Index: branches/wmf/1.18wmf1/extensions/MobileFrontend/views/information/optin.html.php |
— | — | @@ -1,18 +1,18 @@ |
2 | 2 | <?php |
3 | 3 | $optInHtml = <<<EOT |
4 | | - <h1> |
5 | | - {$optInMessage} |
6 | | - </h1> |
7 | | - <p> |
8 | | - {$explainOptIn} |
9 | | - </p> |
10 | | - <div id='disableButtons'> |
11 | | - <form action='/' method='get'> |
12 | | - <input name='mobileaction' type='hidden' value='opt_in_cookie' /> |
13 | | - <button id='disableButton' type='submit'>{$yesButton}</button> |
14 | | - </form> |
15 | | - <form action='/' method='get'> |
16 | | - <button id='backButton' type='submit'>{$noButton}</button> |
17 | | - </form> |
18 | | - </div> |
| 4 | + <h1> |
| 5 | + {$optInMessage} |
| 6 | + </h1> |
| 7 | + <p> |
| 8 | + {$explainOptIn} |
| 9 | + </p> |
| 10 | + <div id='disableButtons'> |
| 11 | + <form action='{$formAction}' method='get'> |
| 12 | + <input name='mobileaction' type='hidden' value='opt_in_cookie' /> |
| 13 | + <button id='disableButton' type='submit'>{$yesButton}</button> |
| 14 | + </form> |
| 15 | + <form action='/' method='get'> |
| 16 | + <button id='backButton' type='submit'>{$noButton}</button> |
| 17 | + </form> |
| 18 | + </div> |
19 | 19 | EOT; |
Index: branches/wmf/1.18wmf1/extensions/MobileFrontend/views/information/optout.html.php |
— | — | @@ -1,18 +1,18 @@ |
2 | 2 | <?php |
3 | 3 | $optOutHtml = <<<EOT |
4 | | - <h1> |
5 | | - {$optOutMessage} |
6 | | - </h1> |
7 | | - <p> |
8 | | - {$explainOptOut} |
9 | | - </p> |
10 | | - <div id='disableButtons'> |
11 | | - <form action='/' method='get'> |
12 | | - <input name='mobileaction' type='hidden' value='opt_out_cookie' /> |
13 | | - <button id='disableButton' type='submit'>{$yesButton}</button> |
14 | | - </form> |
15 | | - <form action='/' method='get'> |
16 | | - <button id='backButton' type='submit'>{$noButton}</button> |
17 | | - </form> |
18 | | - </div> |
| 4 | + <h1> |
| 5 | + {$optOutMessage} |
| 6 | + </h1> |
| 7 | + <p> |
| 8 | + {$explainOptOut} |
| 9 | + </p> |
| 10 | + <div id='disableButtons'> |
| 11 | + <form action='{$formAction}' method='get'> |
| 12 | + <input name='mobileaction' type='hidden' value='opt_out_cookie' /> |
| 13 | + <button id='disableButton' type='submit'>{$yesButton}</button> |
| 14 | + </form> |
| 15 | + <form action='/' method='get'> |
| 16 | + <button id='backButton' type='submit'>{$noButton}</button> |
| 17 | + </form> |
| 18 | + </div> |
19 | 19 | EOT; |