r114293 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114292‎ | r114293 | r114294 >
Date:18:29, 20 March 2012
Author:preilly
Status:ok
Tags:
Comment:
redirect to english version of zero for language landing page for only certain carriers
Modified paths:
  • /trunk/extensions/ZeroRatedMobileAccess/ZeroRatedMobileAccess.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ZeroRatedMobileAccess/ZeroRatedMobileAccess.body.php
@@ -158,6 +158,9 @@
159159 }
160160 if ( self::$isMainPage ) {
161161 $redirect = SpecialPage::getTitleFor( 'ZeroRatedMobileAccess' )->getLocalUrl();
 162+ if ( stristr( self::$carrier, 'DIGI' ) !== FALSE ) {
 163+ $redirect = 'http://en.zero.wikipedia.org/wiki/Special:ZeroRatedMobileAccess';
 164+ }
162165 $wgRequest->response()->header( 'Location: ' . $redirect );
163166 }
164167 $html = $out->getHTML();

Follow-up revisions

RevisionCommit summaryAuthorDate
r1142941.19wmf: MFT r114293preilly18:29, 20 March 2012

Status & tagging log