r94200 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94199‎ | r94200 | r94201 >
Date:21:18, 10 August 2011
Author:preilly
Status:ok
Tags:
Comment:
add back x-device
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: trunk/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