Index: trunk/extensions/CentralNotice/CentralNotice.php |
— | — | @@ -66,7 +66,7 @@ |
67 | 67 | |
68 | 68 | // Enable HideBanners Special Page |
69 | 69 | // Set to true on wikis with donation thank you pages. |
70 | | -$wgAllowHideBanners = 'false'; |
| 70 | +$wgAllowHideBanners = false; |
71 | 71 | |
72 | 72 | $wgExtensionFunctions[] = 'efCentralNoticeSetup'; |
73 | 73 | |
Index: trunk/extensions/CentralNotice/SpecialHideBanners.php |
— | — | @@ -17,13 +17,13 @@ |
18 | 18 | |
19 | 19 | if ( $wgAllowHideBanners ) { |
20 | 20 | $this->setHideCookie(); |
21 | | - |
| 21 | + |
22 | 22 | $wgOut->disable(); |
23 | 23 | wfResetOutputBuffers(); |
24 | | - |
| 24 | + |
25 | 25 | header( 'Content-Type: image/png' ); |
26 | 26 | header( 'Cache-Control: no-cache' ); |
27 | | - |
| 27 | + |
28 | 28 | readfile( dirname( __FILE__ ) . '/1x1.png' ); |
29 | 29 | } |
30 | 30 | } |