http://www.mediawiki.org/wiki/Special:Code/MediaWiki/95028
Revision: 95028
Author: preilly
Date: 2011-08-19 18:51:59 +0000 (Fri, 19 Aug 2011)
Log Message:
-----------
use WebResponse::header() rather than raw header() calls
Modified Paths:
--------------
trunk/extensions/MobileFrontend/MobileFrontend.php
Modified: trunk/extensions/MobileFrontend/MobileFrontend.php
===================================================================
--- trunk/extensions/MobileFrontend/MobileFrontend.php 2011-08-19 18:47:44 UTC
(rev 95027)
+++ trunk/extensions/MobileFrontend/MobileFrontend.php 2011-08-19 18:51:59 UTC
(rev 95028)
@@ -65,7 +65,7 @@
);
class ExtMobileFrontend {
- const VERSION = '0.5.39';
+ const VERSION = '0.5.40';
/**
* @var DOMDocument
@@ -243,7 +243,7 @@
if ( self::$disableImages == 1 ) {
$wgRequest->response()->setcookie( 'disableImages', 1 );
$location = str_replace( '?disableImages=1', '',
$wgRequest->getRequestURL() );
- header( 'Location: ' . $location );
+ WebResponse::header( 'Location: ' . $location );
}
if ( self::$disableImages == 0 ) {
@@ -258,7 +258,7 @@
if ( $disableImages ) {
$wgRequest->response()->setcookie(
'disableImages', '' );
$location = str_replace( '?enableImages=1', '',
$wgRequest->getRequestURL() );
- header( 'Location: ' . $location );
+ WebResponse::header( 'Location: ' . $location );
}
}
@@ -310,7 +310,7 @@
$this->setOptInOutCookie( '1' );
$this->disableCaching();
$location = Title::newMainPage()->getFullURL();
- header( 'Location: ' . $location );
+ WebResponse::header( 'Location: ' . $location );
}
if ( $mobileAction == 'opt_out_cookie' ) {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs