r94202 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94201‎ | r94202 | r94203 >
Date:21:20, 10 August 2011
Author:preilly
Status:ok
Tags:
Comment:
add back x-device detection for mobile view
Modified paths:
  • /branches/wmf/1.17wmf1/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/extensions/MobileFrontend/MobileFrontend.php
@@ -323,7 +323,8 @@
324324 $xDevice = isset( $_SERVER['HTTP_X_DEVICE'] ) ? $_SERVER['HTTP_X_DEVICE'] : '';
325325
326326 if (self::$useFormat === 'mobile' ||
327 - self::$useFormat === 'mobile-wap') {
 327+ self::$useFormat === 'mobile-wap' ||
 328+ !empty( $xDevice ) ) {
328329 $this->getMsg();
329330 $this->disableCaching();
330331 ob_start( array( $this, 'DOMParse' ) );

Status & tagging log