Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -470,6 +470,7 @@ |
471 | 471 | wfProfileIn( __METHOD__ ); |
472 | 472 | |
473 | 473 | $userAgent = $_SERVER['HTTP_USER_AGENT']; |
| 474 | + $acceptHeader = isset( $_SERVER["HTTP_ACCEPT"] ) ? $_SERVER["HTTP_ACCEPT"] : ''; |
474 | 475 | $uAmd5 = md5( $userAgent ); |
475 | 476 | |
476 | 477 | $key = wfMemcKey( 'mobile', 'ua', $uAmd5 ); |
— | — | @@ -562,7 +563,6 @@ |
563 | 564 | self::$search = $wgRequest->getText( 'search' ); |
564 | 565 | self::$searchField = $wgRequest->getText( 'search', '' ); |
565 | 566 | |
566 | | - $acceptHeader = isset( $_SERVER["HTTP_ACCEPT"] ) ? $_SERVER["HTTP_ACCEPT"] : ''; |
567 | 567 | $device = new DeviceDetection(); |
568 | 568 | |
569 | 569 | if ( $xDevice ) { |