r95919 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95918‎ | r95919 | r95920 >
Date:23:13, 31 August 2011
Author:preilly
Status:ok
Tags:
Comment:
mft r95918
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.50';
 69+ const VERSION = '0.5.51';
7070
7171 /**
7272 * @var DOMDocument
@@ -265,7 +265,7 @@
266266
267267 if ( self::$disableImages == 1 ) {
268268 $wgRequest->response()->setcookie( 'disableImages', 1 );
269 - $location = str_replace( '?disableImages=1', '', $wgRequest->getRequestURL() );
 269+ $location = str_replace( 'disableImages=1', '', $wgRequest->getRequestURL() );
270270 $wgRequest->response()->header( 'Location: ' . $location );
271271 }
272272
@@ -280,7 +280,7 @@
281281 $disableImages = $wgRequest->getCookie( 'disableImages' );
282282 if ( $disableImages ) {
283283 $wgRequest->response()->setcookie( 'disableImages', '' );
284 - $location = str_replace( '?enableImages=1', '', $wgRequest->getRequestURL() );
 284+ $location = str_replace( 'enableImages=1', '', $wgRequest->getRequestURL() );
285285 $wgRequest->response()->header( 'Location: ' . $location );
286286 }
287287 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r95918remove ? from replacementpreilly23:12, 31 August 2011

Status & tagging log