summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-12-03 14:17:25 +0300
committerAndrew Dolgov <[email protected]>2017-12-03 14:17:25 +0300
commitbfebf57c5f9cb73c26e0a8faf187db2e257503e1 (patch)
tree6a8ceb88b51c6cc2a9647b9d2ae6890e3dc44728 /include/functions.php
parent2cf93c046c790005e66670c5c4bfe5b6b3e72a67 (diff)
get_theme_path: fallback to css/default.css if default theme is selected
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php
index 54fa2bd9d..531653f93 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -2425,6 +2425,9 @@
}
function get_theme_path($theme) {
+ if ($theme == "default.php")
+ return "css/default.css";
+
$check = "themes/$theme";
if (file_exists($check)) return $check;