r94387 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94386‎ | r94387 | r94388 >
Date:21:36, 12 August 2011
Author:preilly
Status:ok
Tags:
Comment:
add redirect to main page after cookie is set for opt-in testing
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/MobileFrontend.php
@@ -49,7 +49,7 @@
5050 $wgHooks['SkinTemplateOutputPageBeforeExec'][] = array( &$wgExtMobileFrontend, 'addMobileFooter' );
5151
5252 class ExtMobileFrontend {
53 - const VERSION = '0.5.20';
 53+ const VERSION = '0.5.21';
5454
5555 /**
5656 * @var DOMDocument
@@ -265,6 +265,8 @@
266266
267267 if ( $mAction == 'opt_in_cookie' ) {
268268 $this->setOptInOutCookie( '1' );
 269+ $location = Title::newMainPage()->getFullURL();
 270+ header( 'Location: ' . $location );
269271 }
270272
271273 if ( $mAction == 'opt_out_cookie' ) {

Follow-up revisions

RevisionCommit summaryAuthorDate
r94388mft r94387preilly21:43, 12 August 2011

Status & tagging log