r108534 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108533‎ | r108534 | r108535 >
Date:19:21, 10 January 2012
Author:preilly
Status:ok
Tags:
Comment:
move acceptHeader variable
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/MobileFrontend.php
@@ -470,6 +470,7 @@
471471 wfProfileIn( __METHOD__ );
472472
473473 $userAgent = $_SERVER['HTTP_USER_AGENT'];
 474+ $acceptHeader = isset( $_SERVER["HTTP_ACCEPT"] ) ? $_SERVER["HTTP_ACCEPT"] : '';
474475 $uAmd5 = md5( $userAgent );
475476
476477 $key = wfMemcKey( 'mobile', 'ua', $uAmd5 );
@@ -562,7 +563,6 @@
563564 self::$search = $wgRequest->getText( 'search' );
564565 self::$searchField = $wgRequest->getText( 'search', '' );
565566
566 - $acceptHeader = isset( $_SERVER["HTTP_ACCEPT"] ) ? $_SERVER["HTTP_ACCEPT"] : '';
567567 $device = new DeviceDetection();
568568
569569 if ( $xDevice ) {

Follow-up revisions

RevisionCommit summaryAuthorDate
r1085671.18wmf1: MFT r106729 - r108534preilly23:54, 10 January 2012

Status & tagging log