Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -49,7 +49,7 @@ |
50 | 50 | $wgHooks['SkinTemplateOutputPageBeforeExec'][] = array( &$wgExtMobileFrontend, 'addMobileFooter' ); |
51 | 51 | |
52 | 52 | class ExtMobileFrontend { |
53 | | - const VERSION = '0.5.12'; |
| 53 | + const VERSION = '0.5.13'; |
54 | 54 | |
55 | 55 | /** |
56 | 56 | * @var DOMDocument |
— | — | @@ -319,9 +319,12 @@ |
320 | 320 | // html_preferred_dtd |
321 | 321 | |
322 | 322 | // Determine |
| 323 | + |
| 324 | + $xDevice = $_SERVER['HTTP_X_DEVICE']; |
323 | 325 | |
324 | 326 | if (self::$useFormat === 'mobile' || |
325 | | - self::$useFormat === 'mobile-wap' ) { |
| 327 | + self::$useFormat === 'mobile-wap' || |
| 328 | + isset( $xDevice) ) { |
326 | 329 | $this->getMsg(); |
327 | 330 | $this->disableCaching(); |
328 | 331 | ob_start( array( $this, 'DOMParse' ) ); |