r113844 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113843‎ | r113844 | r113845 >
Date:20:32, 14 March 2012
Author:preilly
Status:ok
Tags:
Comment:
1.19wmf: MFT r113843
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
@@ -111,7 +111,7 @@
112112
113113 if ( self::$isFilePage && self::$acceptBilling !== 'yes' ) {
114114 $acceptBillingYes = Html::rawElement( 'a',
115 - array( 'href' => str_replace( '.zero.', '.m.', wfExpandUrl( $wgRequest->appendQuery( 'acceptbilling=yes' . urlencode( $referrer ) ), PROTO_CURRENT ) ) ),
 115+ array( 'href' => str_replace( '.wikipedia.org/', '.m.wikipedia.org/', wfExpandUrl( $wgRequest->appendQuery( 'acceptbilling=yes' . urlencode( $referrer ) ), PROTO_CURRENT ) ) ),
116116 wfMsg( 'zero-rated-mobile-access-banner-text-data-charges-yes' ) );
117117 $referrer = $wgRequest->getHeader( 'referer' );
118118 $acceptBillingNo = Html::rawElement( 'a',

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r113843fix string replacement for domainpreilly20:32, 14 March 2012

Status & tagging log