]> git.proxmox.com Git - pmg-api.git/commitdiff
proxy: make the "auto" theme the default
authorStefan Sterz <s.sterz@proxmox.com>
Tue, 14 Mar 2023 14:02:03 +0000 (15:02 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 15 Mar 2023 14:45:11 +0000 (15:45 +0100)
by using the "auto" theme per default, the user's preferred theme is
used automatically.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
src/PMG/Service/pmgproxy.pm

index 9b5ba52b692e2382243971dda7001d0ba582643f..310519a427ee57d36560660274961e782ca7d614 100755 (executable)
@@ -230,6 +230,10 @@ sub get_index {
        }
     }
 
+    if ($theme eq "") {
+       $theme = "auto"
+    }
+
     $token = PMG::Ticket::assemble_csrf_prevention_token($username)
        if defined($username);
 
@@ -270,7 +274,6 @@ sub get_index {
        wtversion => $wtversion,
        quarantinelink => $quarantinelink,
        theme => $theme,
-       auto => $theme == "auto",
     };
 
     my $template_name;