[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Cookie consent: preserve category keys in defaults
"Domeshow Emmanuel \(@Domeshow\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <6a7648869b51f_3819f474259e5@gitlab-sidekiq-low-urgency-cpu-bound-v2-57d89f4484-fpdzc.mail> |
Domeshow Emmanuel pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
2a05c00c by Domeshow Emmanuel at 2026-08-07T23:51:09+03:00
[FIX] Cookie consent: preserve category keys in defaults
---
* [FIX] Cookie consent: preserve category keys in defaults
See merge request tikiwiki/tiki!10864
- - - - -
1 changed file:
- lib/CookieConsent/CookieConsentLib.php
Changes:
=====================================
lib/CookieConsent/CookieConsentLib.php
=====================================
@@ -97,7 +97,7 @@ class CookieConsentLib
$defaultConsentPreferences = [
'action' => 'customized',
'consentGiven' => false, // Helps determine if the user has given consent or not
- 'categories' => array_map(fn() => false, array_keys(self::getCookieCategories())) // Default to false for all categories
+ 'categories' => array_fill_keys(array_keys(self::getCookieCategories()), false) // Default to false for all categories
];
$consentPreferences = null;
/* FIXME: This is incomplete. There are at least the following cases to deal with:
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/2a05c00ca5a9f65fac98389839a7ecfe027a0f3e
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/2a05c00ca5a9f65fac98389839a7ecfe027a0f3e
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs