Index: branches/wmf/1.19wmf1/extensions/ZeroRatedMobileAccess/ZeroRatedMobileAccess.body.php |
— | — | @@ -46,6 +46,7 @@ |
47 | 47 | return $ext->beforePageDisplayHTML( $out, $text ); |
48 | 48 | } |
49 | 49 | |
| 50 | + |
50 | 51 | /** |
51 | 52 | * Handler for the BeforePageDisplay hook |
52 | 53 | * |
— | — | @@ -110,7 +111,7 @@ |
111 | 112 | |
112 | 113 | if ( self::$isFilePage && self::$acceptBilling !== 'yes' ) { |
113 | 114 | $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 ) ) ), |
115 | 116 | wfMsg( 'zero-rated-mobile-access-banner-text-data-charges-yes' ) ); |
116 | 117 | $referrer = $wgRequest->getHeader( 'referer' ); |
117 | 118 | $acceptBillingNo = Html::rawElement( 'a', |