http://www.mediawiki.org/wiki/Special:Code/MediaWiki/95029

Revision: 95029
Author:   preilly
Date:     2011-08-19 18:53:13 +0000 (Fri, 19 Aug 2011)
Log Message:
-----------
mft r95028

Modified Paths:
--------------
    branches/wmf/1.17wmf1/extensions/MobileFrontend/MobileFrontend.php

Modified: branches/wmf/1.17wmf1/extensions/MobileFrontend/MobileFrontend.php
===================================================================
--- branches/wmf/1.17wmf1/extensions/MobileFrontend/MobileFrontend.php  
2011-08-19 18:51:59 UTC (rev 95028)
+++ branches/wmf/1.17wmf1/extensions/MobileFrontend/MobileFrontend.php  
2011-08-19 18:53:13 UTC (rev 95029)
@@ -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

Reply via email to