From 8eb340c3ca9f30e48d8019f16d3b2a4385881192 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 1 Aug 2025 17:20:05 +0300 Subject: make default light/dark themes configurable, add support for main application and login form --- include/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/functions.php') diff --git a/include/functions.php b/include/functions.php index ae403ca84..24b5c8538 100644 --- a/include/functions.php +++ b/include/functions.php @@ -464,14 +464,14 @@ return false; } - function get_theme_path(string $theme): string { + function get_theme_path(string $theme, string $default = ""): string { $check = "themes/$theme"; if (file_exists($check)) return $check; $check = "themes.local/$theme"; if (file_exists($check)) return $check; - return ""; + return $default; } function theme_exists(string $theme): bool { -- cgit v1.2.3-54-g00ecf