From b5feb9e03175c1e775a094b8a5a6ea30758489ac Mon Sep 17 00:00:00 2001 From: DL6ER Date: Tue, 26 Sep 2023 09:55:31 +0200 Subject: [PATCH] Remove theme.lua, source everything there is to know through Lua instead (pihole.webtheme() now returns a full table) Signed-off-by: DL6ER --- scripts/pi-hole/lua/header.lp | 6 +-- scripts/pi-hole/lua/header_authenticated.lp | 2 +- scripts/pi-hole/lua/theme.lua | 57 --------------------- 3 files changed, 4 insertions(+), 61 deletions(-) delete mode 100644 scripts/pi-hole/lua/theme.lua 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 - + @@ -80,7 +80,7 @@ is_authenticated = mg.request_info.is_authenticated - + @@ -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') - +