Index: branches/wmf/1.17wmf1/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -65,7 +65,7 @@ |
66 | 66 | ); |
67 | 67 | |
68 | 68 | class ExtMobileFrontend { |
69 | | - const VERSION = '0.5.39'; |
| 69 | + const VERSION = '0.5.40'; |
70 | 70 | |
71 | 71 | /** |
72 | 72 | * @var DOMDocument |
— | — | @@ -243,7 +243,7 @@ |
244 | 244 | if ( self::$disableImages == 1 ) { |
245 | 245 | $wgRequest->response()->setcookie( 'disableImages', 1 ); |
246 | 246 | $location = str_replace( '?disableImages=1', '', $wgRequest->getRequestURL() ); |
247 | | - header( 'Location: ' . $location ); |
| 247 | + WebResponse::header( 'Location: ' . $location ); |
248 | 248 | } |
249 | 249 | |
250 | 250 | if ( self::$disableImages == 0 ) { |
— | — | @@ -258,7 +258,7 @@ |
259 | 259 | if ( $disableImages ) { |
260 | 260 | $wgRequest->response()->setcookie( 'disableImages', '' ); |
261 | 261 | $location = str_replace( '?enableImages=1', '', $wgRequest->getRequestURL() ); |
262 | | - header( 'Location: ' . $location ); |
| 262 | + WebResponse::header( 'Location: ' . $location ); |
263 | 263 | } |
264 | 264 | } |
265 | 265 | |
— | — | @@ -310,7 +310,7 @@ |
311 | 311 | $this->setOptInOutCookie( '1' ); |
312 | 312 | $this->disableCaching(); |
313 | 313 | $location = Title::newMainPage()->getFullURL(); |
314 | | - header( 'Location: ' . $location ); |
| 314 | + WebResponse::header( 'Location: ' . $location ); |
315 | 315 | } |
316 | 316 | |
317 | 317 | if ( $mobileAction == 'opt_out_cookie' ) { |