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

Revision: 97748
Author:   preilly
Date:     2011-09-21 17:23:31 +0000 (Wed, 21 Sep 2011)
Log Message:
-----------
fix for r97645 comment 22929

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

Modified: trunk/extensions/MobileFrontend/MobileFrontend.php
===================================================================
--- trunk/extensions/MobileFrontend/MobileFrontend.php  2011-09-21 17:04:14 UTC 
(rev 97747)
+++ trunk/extensions/MobileFrontend/MobileFrontend.php  2011-09-21 17:23:31 UTC 
(rev 97748)
@@ -76,7 +76,7 @@
 }
 
 class ExtMobileFrontend {
-       const VERSION = '0.5.65';
+       const VERSION = '0.5.66';
 
        /**
         * @var DOMDocument
@@ -193,7 +193,7 @@
        public function testCanonicalRedirect( $request, $title, $output ) {
                global $wgMobileDomain;
                $host = $request->getHeader( 'HOST' );
-               return ( stristr( $host, $wgMobileDomain ) !== false ) ? false 
: true;
+               return !( stristr( $host, $wgMobileDomain ) !== false );
        }
 
        public function addMobileFooter( &$obj, &$tpl ) {


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

Reply via email to