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

Revision: 97751
Author:   preilly
Date:     2011-09-21 18:13:52 +0000 (Wed, 21 Sep 2011)
Log Message:
-----------
fix for r95268 comment 21339 remove use of isset

Modified Paths:
--------------
    trunk/extensions/MobileFrontend/MobileFrontend.php

Modified: trunk/extensions/MobileFrontend/MobileFrontend.php
===================================================================
--- trunk/extensions/MobileFrontend/MobileFrontend.php  2011-09-21 18:03:41 UTC 
(rev 97750)
+++ trunk/extensions/MobileFrontend/MobileFrontend.php  2011-09-21 18:13:52 UTC 
(rev 97751)
@@ -57,7 +57,7 @@
  *
  * e.g., http://en.wikipedia.org/w/mobileRedirect.php
  */
-$wgMobileRedirectFormAction;
+$wgMobileRedirectFormAction = false;
 
 $wgExtMobileFrontend = new ExtMobileFrontend();
 
@@ -84,7 +84,7 @@
 }
 
 class ExtMobileFrontend {
-       const VERSION = '0.5.67';
+       const VERSION = '0.5.68';
 
        /**
         * @var DOMDocument
@@ -259,7 +259,7 @@
                self::$code = $wgContLang->getCode();
                
                $nonMobileServerBaseURL = str_replace( $wgMobileDomain, '.', 
$wgServer );
-               self::$mobileRedirectFormAction = ( isset( 
$wgMobileRedirectFormAction ) ) ? $wgMobileRedirectFormAction : 
"{$nonMobileServerBaseURL}/w/mobileRedirect.php";
+               self::$mobileRedirectFormAction = ( $wgMobileRedirectFormAction 
!== false ) ? $wgMobileRedirectFormAction : 
"{$nonMobileServerBaseURL}/w/mobileRedirect.php";
 
                self::$mainPageUrl = Title::newMainPage()->getLocalUrl();
                self::$randomPageUrl = $this->getRelativeURL( 
SpecialPage::getTitleFor( 'Randompage' )->getLocalUrl() );


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

Reply via email to