summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php4
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 {