r97748 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97747‎ | r97748 | r97749 >
Date:17:23, 21 September 2011
Author:preilly
Status:ok
Tags:
Comment:
fix for r97645 comment 22929
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/MobileFrontend.php
@@ -76,7 +76,7 @@
7777 }
7878
7979 class ExtMobileFrontend {
80 - const VERSION = '0.5.65';
 80+ const VERSION = '0.5.66';
8181
8282 /**
8383 * @var DOMDocument
@@ -193,7 +193,7 @@
194194 public function testCanonicalRedirect( $request, $title, $output ) {
195195 global $wgMobileDomain;
196196 $host = $request->getHeader( 'HOST' );
197 - return ( stristr( $host, $wgMobileDomain ) !== false ) ? false : true;
 197+ return !( stristr( $host, $wgMobileDomain ) !== false );
198198 }
199199
200200 public function addMobileFooter( &$obj, &$tpl ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r97645fix for bug 31012 - mobile version replaced by desktop version in a webview o...preilly17:21, 20 September 2011

Status & tagging log