r113840 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113839‎ | r113840 | r113841 >
Date:20:28, 14 March 2012
Author:preilly
Status:resolved
Tags:
Comment:
redirect data charges to non zero mobile domain
Modified paths:
  • /trunk/extensions/ZeroRatedMobileAccess/ZeroRatedMobileAccess.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ZeroRatedMobileAccess/ZeroRatedMobileAccess.body.php
@@ -46,6 +46,7 @@
4747 return $ext->beforePageDisplayHTML( $out, $text );
4848 }
4949
 50+
5051 /**
5152 * Handler for the BeforePageDisplay hook
5253 *
@@ -110,7 +111,7 @@
111112
112113 if ( self::$isFilePage && self::$acceptBilling !== 'yes' ) {
113114 $acceptBillingYes = Html::rawElement( 'a',
114 - array( 'href' => $wgRequest->appendQuery( 'renderZeroRatedBanner=true&acceptbilling=yes' ) ),
 115+ array( 'href' => str_replace( '.zero.', '.m.', wfExpandUrl( $wgRequest->appendQuery( 'acceptbilling=yes' . urlencode( $referrer ) ), PROTO_CURRENT ) ) ),
115116 wfMsg( 'zero-rated-mobile-access-banner-text-data-charges-yes' ) );
116117 $referrer = $wgRequest->getHeader( 'referer' );
117118 $acceptBillingNo = Html::rawElement( 'a',

Follow-up revisions

RevisionCommit summaryAuthorDate
r1138411.19wmf: MFT r113840preilly20:29, 14 March 2012

Status & tagging log