diff --git a/index.php b/index.php index b1e7f572..b9c48fb9 100644 --- a/index.php +++ b/index.php @@ -35,7 +35,7 @@ $database = new Database(); $database->db->fnExecute = '_count_execs'; $config = new Config($database); $_theme = $config->get_string("theme", "default"); -if(!file_exists($_theme)) $_theme = "default"; +if(!file_exists("themes/$_theme")) $_theme = "default"; require_once "themes/$_theme/page.class.php"; require_once "themes/$_theme/layout.class.php"; require_once "themes/$_theme/themelet.class.php";