http://www.mediawiki.org/wiki/Special:Code/MediaWiki/94141
Revision: 94141
Author: kaldari
Date: 2011-08-10 01:35:02 +0000 (Wed, 10 Aug 2011)
Log Message:
-----------
updating HideBanners for new hiding scheme, also fixing image loading path
Modified Paths:
--------------
trunk/extensions/CentralNotice/special/SpecialHideBanners.php
Modified: trunk/extensions/CentralNotice/special/SpecialHideBanners.php
===================================================================
--- trunk/extensions/CentralNotice/special/SpecialHideBanners.php
2011-08-10 01:32:56 UTC (rev 94140)
+++ trunk/extensions/CentralNotice/special/SpecialHideBanners.php
2011-08-10 01:35:02 UTC (rev 94141)
@@ -25,7 +25,7 @@
header( 'Content-Type: image/png' );
header( 'Cache-Control: no-cache' );
- readfile( dirname( __FILE__ ) . '/1x1.png' );
+ readfile( dirname( __FILE__ ) . '/../1x1.png' );
}
function setHideCookie() {
@@ -36,7 +36,7 @@
} else {
$cookieDomain = $wgNoticeCookieDomain;
}
- // Hide banners for this domain
- setcookie( 'hidesnmessage', '1', $exp, '/', $cookieDomain,
$wgCookieSecure );
+ // Hide fundraising banners for this domain
+ setcookie( 'centralnotice_fundraising', 'hide', $exp, '/',
$cookieDomain, $wgCookieSecure );
}
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs