From c40b871fd3db71cee68ffd3fcd34fe426a94d7d0 Mon Sep 17 00:00:00 2001 From: cbo Date: Fri, 15 Mar 2024 15:33:12 +0100 Subject: [PATCH] Problem with theme solved --- include/init.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/init.php b/include/init.php index 645c9ff0..24a4f88a 100644 --- a/include/init.php +++ b/include/init.php @@ -8,14 +8,14 @@ if (!isset($_SESSION['userAccreditation']) || !isset($_SESSION['userLevel'])) { } if (!isset($_COOKIE['theme'])) { - setcookie('theme', 0, time()+10*60*60); + setcookie('theme', 0, time()+10*60*60, "/", ".e59.fr"); $darkTheme = $darkThemes[0]; $lightTheme = $lightThemes[0]; } if (isset($_GET['theme'])) { $newTheme = (int)$_GET['theme'] % 2; - setcookie('theme', $newTheme); // % 2 => Number of different themes + setcookie('theme', $newTheme, time()+10*60*60, "/", ".e59.fr"); // % 2 => Number of different themes $darkTheme = $darkThemes[$newTheme]; $lightTHeme = $lightThemes[$newTheme];