mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Persist selected theme in dropdown
This commit is contained in:
@@ -66,10 +66,11 @@ if (empty($_SESSION['csrf_token'])) {
|
||||
$csrf_token = $_SESSION['csrf_token'];
|
||||
|
||||
if(!isset($_COOKIE['theme'])) {
|
||||
$theme_url = "dist/css/custom.css";
|
||||
$theme = "custom.css";
|
||||
} else {
|
||||
$theme_url = $_COOKIE['theme'];
|
||||
$theme = $_COOKIE['theme'];
|
||||
}
|
||||
$theme_url = 'dist/css/' . $theme;
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
Reference in New Issue
Block a user