r114426 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114425‎ | r114426 | r114427 >
Date:18:07, 22 March 2012
Author:preilly
Status:deferred
Tags:
Comment:
1.19wmf: MFG Change-Id:
Modified paths:
  • /branches/wmf/1.19wmf1/extensions/ZeroRatedMobileAccess/ZeroRatedMobileAccess.body.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.19wmf1/extensions/ZeroRatedMobileAccess/ZeroRatedMobileAccess.body.php
@@ -78,8 +78,6 @@
7979 return true;
8080 }
8181
82 - $output = '';
83 -
8482 self::$renderZeroRatedLandingPage = $wgRequest->getFuzzyBool( 'renderZeroRatedLandingPage' );
8583 self::$renderZeroRatedBanner = $wgRequest->getFuzzyBool( 'renderZeroRatedBanner' );
8684 self::$renderZeroRatedRedirect = $wgRequest->getFuzzyBool( 'renderZeroRatedRedirect' );
@@ -96,6 +94,13 @@
9795 self::$renderZeroRatedBanner = true;
9896 }
9997
 98+ if ( !self::$renderZeroRatedLandingPage && !self::$renderZeroRatedBanner ) {
 99+ wfProfileOut( __METHOD__ );
 100+ return true;
 101+ }
 102+
 103+ $output = '';
 104+
100105 if ( self::$title->getNamespace() == NS_FILE ) {
101106 self::$isFilePage = true;
102107 }
@@ -202,6 +207,11 @@
203208 }
204209 self::addDebugOutput( $country );
205210 }
 211+
 212+ if ( isset( self::$carrier['name'] ) && stristr( self::$carrier['name'], 'DIGI' ) !== FALSE ) {
 213+ $country = 'MY';
 214+ }
 215+
206216 $languageOptions = $this->createLanguageOptionsFromWikiText();
207217 // self::$displayDebugOutput = true;
208218 $languagesForCountry = ( isset( $languageOptions[self::getFullCountryNameFromCode( $country )] ) ) ?

Status & tagging log