Index: trunk/extensions/ZeroRatedMobileAccess/ZeroRatedMobileAccess.body.php |
— | — | @@ -47,7 +47,7 @@ |
48 | 48 | self::$title = $out->getTitle(); |
49 | 49 | |
50 | 50 | $carrier = $wgRequest->getHeader( 'HTTP_X_CARRIER' ); |
51 | | - if ( $carrier !== '(null)') { |
| 51 | + if ( $carrier !== '(null)' && $carrier ) { |
52 | 52 | self::$renderZeroRatedBanner = true; |
53 | 53 | } |
54 | 54 | |
— | — | @@ -203,11 +203,14 @@ |
204 | 204 | } |
205 | 205 | |
206 | 206 | $output .= Html::closeElement( 'div' ); |
207 | | - $out->addHTML( $output ); |
| 207 | + if ( $output != '<div id="zero-landing-page"></div>' ) { |
| 208 | + $out->addHTML( $output ); |
| 209 | + } |
| 210 | + |
208 | 211 | wfProfileOut( __METHOD__ ); |
209 | 212 | return true; |
210 | 213 | } |
211 | | - |
| 214 | + |
212 | 215 | /** |
213 | 216 | * Returns information about carrier |
214 | 217 | * |