r95026 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95025‎ | r95026 | r95027 >
Date:18:42, 19 August 2011
Author:preilly
Status:resolved
Tags:
Comment:
mft r95024
Modified paths:
  • /branches/wmf/1.17wmf1/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/extensions/MobileFrontend/MobileFrontend.php
@@ -65,7 +65,7 @@
6666 );
6767
6868 class ExtMobileFrontend {
69 - const VERSION = '0.5.38';
 69+ const VERSION = '0.5.39';
7070
7171 /**
7272 * @var DOMDocument
@@ -242,6 +242,8 @@
243243
244244 if ( self::$disableImages == 1 ) {
245245 $wgRequest->response()->setcookie( 'disableImages', 1 );
 246+ $location = str_replace( '?disableImages=1', '', $wgRequest->getRequestURL() );
 247+ header( 'Location: ' . $location );
246248 }
247249
248250 if ( self::$disableImages == 0 ) {
@@ -255,6 +257,8 @@
256258 $disableImages = $wgRequest->getCookie( 'disableImages' );
257259 if ( $disableImages ) {
258260 $wgRequest->response()->setcookie( 'disableImages', '' );
 261+ $location = str_replace( '?enableImages=1', '', $wgRequest->getRequestURL() );
 262+ header( 'Location: ' . $location );
259263 }
260264 }
261265

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r95024fix for Bug 30458 - mobile link to view images site is flakypreilly18:38, 19 August 2011

Status & tagging log