r95918 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95917‎ | r95918 | r95919 >
Date:23:12, 31 August 2011
Author:preilly
Status:ok
Tags:
Comment:
remove ? from replacement
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: trunk/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 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r95919mft r95918preilly23:13, 31 August 2011

Status & tagging log