Index: trunk/extensions/CentralNotice/SpecialHideBanners.php |
— | — | @@ -27,7 +27,7 @@ |
28 | 28 | } |
29 | 29 | |
30 | 30 | function setHideCookie() { |
31 | | - global $wgNoticeCookieDomain, $wgCookieSecure, $wgCookieHttpOnly; |
| 31 | + global $wgNoticeCookieDomain, $wgCookieSecure; |
32 | 32 | $exp = time() + 86400 * 14; // Cookie expires after 2 weeks |
33 | 33 | if ( is_callable( 'CentralAuthUser', 'getCookieDomain' ) ) { |
34 | 34 | $cookieDomain = CentralAuthUser::getCookieDomain(); |
— | — | @@ -35,6 +35,6 @@ |
36 | 36 | $cookieDomain = $wgNoticeCookieDomain; |
37 | 37 | } |
38 | 38 | // Hide banners for this domain |
39 | | - setcookie( 'hidesnmessage', '1', $exp, '/', $cookieDomain, $wgCookieSecure, $wgCookieHttpOnly ); |
| 39 | + setcookie( 'hidesnmessage', '1', $exp, '/', $cookieDomain, $wgCookieSecure ); |
40 | 40 | } |
41 | 41 | } |