Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -65,7 +65,7 @@ |
66 | 66 | ); |
67 | 67 | |
68 | 68 | class ExtMobileFrontend { |
69 | | - const VERSION = '0.5.50'; |
| 69 | + const VERSION = '0.5.51'; |
70 | 70 | |
71 | 71 | /** |
72 | 72 | * @var DOMDocument |
— | — | @@ -265,7 +265,7 @@ |
266 | 266 | |
267 | 267 | if ( self::$disableImages == 1 ) { |
268 | 268 | $wgRequest->response()->setcookie( 'disableImages', 1 ); |
269 | | - $location = str_replace( '?disableImages=1', '', $wgRequest->getRequestURL() ); |
| 269 | + $location = str_replace( 'disableImages=1', '', $wgRequest->getRequestURL() ); |
270 | 270 | $wgRequest->response()->header( 'Location: ' . $location ); |
271 | 271 | } |
272 | 272 | |
— | — | @@ -280,7 +280,7 @@ |
281 | 281 | $disableImages = $wgRequest->getCookie( 'disableImages' ); |
282 | 282 | if ( $disableImages ) { |
283 | 283 | $wgRequest->response()->setcookie( 'disableImages', '' ); |
284 | | - $location = str_replace( '?enableImages=1', '', $wgRequest->getRequestURL() ); |
| 284 | + $location = str_replace( 'enableImages=1', '', $wgRequest->getRequestURL() ); |
285 | 285 | $wgRequest->response()->header( 'Location: ' . $location ); |
286 | 286 | } |
287 | 287 | } |