r80150 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80149‎ | r80150 | r80151 >
Date:01:33, 13 January 2011
Author:kaldari
Status:deferred
Tags:
Comment:
testing
Modified paths:
  • /trunk/extensions/CentralNotice/SpecialHideBanners.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/SpecialHideBanners.php
@@ -15,17 +15,15 @@
1616 function execute( $par ) {
1717 global $wgAllowHideBanners, $wgRequest, $wgOut;
1818
19 - if ( $wgAllowHideBanners ) {
20 - $this->setHideCookie();
 19+ $this->setHideCookie();
2120
22 - $wgOut->disable();
23 - wfResetOutputBuffers();
 21+ $wgOut->disable();
 22+ wfResetOutputBuffers();
2423
25 - header( 'Content-Type: image/png' );
26 - header( 'Cache-Control: no-cache' );
 24+ header( 'Content-Type: image/png' );
 25+ header( 'Cache-Control: no-cache' );
2726
28 - readfile( dirname( __FILE__ ) . '/1x1.png' );
29 - }
 27+ readfile( dirname( __FILE__ ) . '/1x1.png' );
3028 }
3129
3230 function setHideCookie() {

Status & tagging log