Fix theme select for material variants

This commit is contained in:
billz 2023-09-17 10:38:01 +02:00
parent 4f2a43365b
commit a4e8beabdf

View file

@ -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);