http://www.mediawiki.org/wiki/Special:Code/MediaWiki/94196

Revision: 94196
Author:   preilly
Date:     2011-08-10 20:43:19 +0000 (Wed, 10 Aug 2011)
Log Message:
-----------
fix Undefined index: HTTP_X_DEVICE error

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 20:42:04 UTC (rev 94195)
+++ branches/wmf/1.17wmf1/extensions/MobileFrontend/MobileFrontend.php  
2011-08-10 20:43:19 UTC (rev 94196)
@@ -49,7 +49,7 @@
 $wgHooks['SkinTemplateOutputPageBeforeExec'][] = array( &$wgExtMobileFrontend, 
'addMobileFooter' );
 
 class ExtMobileFrontend {
-       const VERSION = '0.5.14';
+       const VERSION = '0.5.15';
 
        /**
         * @var DOMDocument
@@ -320,7 +320,7 @@
 
                // Determine
                
-               $xDevice = $_SERVER['HTTP_X_DEVICE'];
+               $xDevice = isset( $_SERVER['HTTP_X_DEVICE'] ) ? 
$_SERVER['HTTP_X_DEVICE'] : '';
 
                if (self::$useFormat === 'mobile' ||
                        self::$useFormat === 'mobile-wap' ||


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to