diff --git a/scripts/pi-hole/lua/header.lp b/scripts/pi-hole/lua/header.lp
index 1facf8eae..4417e6526 100644
--- a/scripts/pi-hole/lua/header.lp
+++ b/scripts/pi-hole/lua/header.lp
@@ -64,7 +64,7 @@ is_authenticated = mg.request_info.is_authenticated
- pihole.include('scripts/pi-hole/lua/theme.lua') ?>
+ theme = pihole.webtheme() ?>
@@ -80,7 +80,7 @@ is_authenticated = mg.request_info.is_authenticated
end ?>
- if pihole.webtheme() == 'lcars' then ?>
+ if theme.name == 'lcars' then ?>
else ?>
@@ -107,7 +107,7 @@ if startsWith(scriptname, 'groups') then
-
+
diff --git a/scripts/pi-hole/lua/header_authenticated.lp b/scripts/pi-hole/lua/header_authenticated.lp
index acecf73c4..4e4225ee7 100644
--- a/scripts/pi-hole/lua/header_authenticated.lp
+++ b/scripts/pi-hole/lua/header_authenticated.lp
@@ -17,7 +17,7 @@ mg.include('header.lp','r')
-
+