Index: trunk/extensions/ZeroRatedMobileAccess/ZeroRatedMobileAccess.body.php |
— | — | @@ -109,7 +109,7 @@ |
110 | 110 | } |
111 | 111 | } |
112 | 112 | |
113 | | - if ( self::$isFilePage && self::$acceptBilling !== 'yes' ) { |
| 113 | + if ( self::$isFilePage && self::$acceptBilling !== 'yes' && self::$renderZeroRatedBanner === true ) { |
114 | 114 | $acceptBillingYes = Html::rawElement( 'a', |
115 | 115 | array( 'href' => str_replace( '.wikipedia.org/', '.m.wikipedia.org/', wfExpandUrl( $wgRequest->appendQuery( 'acceptbilling=yes' . urlencode( $referrer ) ), PROTO_CURRENT ) ) ), |
116 | 116 | wfMsg( 'zero-rated-mobile-access-banner-text-data-charges-yes' ) ); |