Index: trunk/extensions/ZeroRatedMobileAccess/ZeroRatedMobileAccess.body.php |
— | — | @@ -1,7 +1,7 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | class ExtZeroRatedMobileAccess { |
5 | | - const VERSION = '0.0.7'; |
| 5 | + const VERSION = '0.0.8'; |
6 | 6 | |
7 | 7 | public static $renderZeroRatedLandingPage; |
8 | 8 | public static $renderZeroRatedBanner; |
— | — | @@ -39,8 +39,7 @@ |
40 | 40 | return true; |
41 | 41 | } |
42 | 42 | |
43 | | - $output = Html::openElement( 'div', |
44 | | - array( 'id' => 'zero-landing-page' ) ); |
| 43 | + $output = ''; |
45 | 44 | |
46 | 45 | self::$renderZeroRatedLandingPage = $wgRequest->getFuzzyBool( 'renderZeroRatedLandingPage' ); |
47 | 46 | self::$renderZeroRatedBanner = $wgRequest->getFuzzyBool( 'renderZeroRatedBanner' ); |
— | — | @@ -206,8 +205,8 @@ |
207 | 206 | $output .= Html::closeElement( 'select' ); |
208 | 207 | } |
209 | 208 | |
210 | | - $output .= Html::closeElement( 'div' ); |
211 | | - if ( $output != '<div id="zero-landing-page"></div>' ) { |
| 209 | + if ( $output ) { |
| 210 | + $output = Html::openElement( 'div', array( 'id' => 'zero-landing-page' ) ) . $output . Html::closeElement( 'div' ); |
212 | 211 | $out->addHTML( $output ); |
213 | 212 | } |
214 | 213 | } |