r94141 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94140‎ | r94141 | r94142 >
Date:01:35, 10 August 2011
Author:kaldari
Status:ok
Tags:
Comment:
updating HideBanners for new hiding scheme, also fixing image loading path
Modified paths:
  • /trunk/extensions/CentralNotice/special/SpecialHideBanners.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/special/SpecialHideBanners.php
@@ -25,7 +25,7 @@
2626 header( 'Content-Type: image/png' );
2727 header( 'Cache-Control: no-cache' );
2828
29 - readfile( dirname( __FILE__ ) . '/1x1.png' );
 29+ readfile( dirname( __FILE__ ) . '/../1x1.png' );
3030 }
3131
3232 function setHideCookie() {
@@ -36,7 +36,7 @@
3737 } else {
3838 $cookieDomain = $wgNoticeCookieDomain;
3939 }
40 - // Hide banners for this domain
41 - setcookie( 'hidesnmessage', '1', $exp, '/', $cookieDomain, $wgCookieSecure );
 40+ // Hide fundraising banners for this domain
 41+ setcookie( 'centralnotice_fundraising', 'hide', $exp, '/', $cookieDomain, $wgCookieSecure );
4242 }
4343 }

Status & tagging log