http://www.mediawiki.org/wiki/Special:Code/MediaWiki/94202
Revision: 94202
Author: preilly
Date: 2011-08-10 21:20:00 +0000 (Wed, 10 Aug 2011)
Log Message:
-----------
add back x-device detection for mobile view
Modified Paths:
--------------
branches/wmf/1.17wmf1/extensions/MobileFrontend/MobileFrontend.php
Modified: branches/wmf/1.17wmf1/extensions/MobileFrontend/MobileFrontend.php
===================================================================
--- branches/wmf/1.17wmf1/extensions/MobileFrontend/MobileFrontend.php
2011-08-10 21:19:27 UTC (rev 94201)
+++ branches/wmf/1.17wmf1/extensions/MobileFrontend/MobileFrontend.php
2011-08-10 21:20:00 UTC (rev 94202)
@@ -323,7 +323,8 @@
$xDevice = isset( $_SERVER['HTTP_X_DEVICE'] ) ?
$_SERVER['HTTP_X_DEVICE'] : '';
if (self::$useFormat === 'mobile' ||
- self::$useFormat === 'mobile-wap') {
+ self::$useFormat === 'mobile-wap' ||
+ !empty( $xDevice ) ) {
$this->getMsg();
$this->disableCaching();
ob_start( array( $this, 'DOMParse' ) );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs