r90494 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90493‎ | r90494 | r90495 >
Date:23:17, 20 June 2011
Author:preilly
Status:ok
Tags:
Comment:
switch to elseif
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/MobileFrontend.php
@@ -48,7 +48,7 @@
4949 'onOutputPageBeforeHTML' );
5050
5151 class ExtMobileFrontend {
52 - const VERSION = '0.5.0';
 52+ const VERSION = '0.5.1';
5353
5454 private $doc;
5555
@@ -172,9 +172,7 @@
173173 $props['is_wireless_device'] === 'true' &&
174174 $props['is_tablet'] === 'false' ) {
175175 ob_start( array( $this, 'DOMParse' ) );
176 - }
177 -
178 - if ($useFormat === 'mobile') {
 176+ } elseif ($useFormat === 'mobile') {
179177 ob_start( array( $this, 'DOMParse' ) );
180178 }
181179

Status & tagging log