diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2025-08-01 17:20:05 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2025-08-01 17:22:21 +0300 |
| commit | 8eb340c3ca9f30e48d8019f16d3b2a4385881192 (patch) | |
| tree | 1e798aae0960cf292d0253e781c5c432b3dfae38 /include/functions.php | |
| parent | 851ddf4bbe750e30816b6c494165e9860bd39b92 (diff) | |
make default light/dark themes configurable, add support for main application and login form
Diffstat (limited to 'include/functions.php')
| -rw-r--r-- | include/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |