From a4e8beabdf11614eedc2e9e2a8799a0104ddecd2 Mon Sep 17 00:00:00 2001 From: billz Date: Sun, 17 Sep 2023 10:38:01 +0200 Subject: [PATCH] Fix theme select for material variants --- includes/system.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/system.php b/includes/system.php index c65d374d..b9072c45 100755 --- a/includes/system.php +++ b/includes/system.php @@ -144,6 +144,9 @@ function DisplaySystem(&$extraFooterScripts) "material-light" => "material-light.php" ]; $selectedTheme = array_search($_COOKIE['theme'], $themeFiles); + if (strpos($_COOKIE['theme'],'material') !== false) { + $selectedTheme = 'material-light'; + } $extraFooterScripts[] = array('src'=>'dist/huebee/huebee.pkgd.min.js', 'defer'=>false); $extraFooterScripts[] = array('src'=>'app/js/huebee.js', 'defer'=>false);