summaryrefslogtreecommitdiff
path: root/inc/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/functions.php')
-rw-r--r--inc/functions.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/functions.php b/inc/functions.php
index fd00dc9f..b90abe1b 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -96,6 +96,9 @@
function loadThemeConfig($_theme) {
global $config;
+ if(!file_exists($config['dir']['homepage'] . '/' . $_theme . '/theme.php'))
+ return false;
+
// Load theme information into $theme
include $config['dir']['homepage'] . '/' . $_theme . '/theme.php';
return $theme;