From 1b05dbe34a374a8c813fec71644470ff9ef499ec Mon Sep 17 00:00:00 2001 From: shish Date: Mon, 22 Oct 2007 00:05:07 +0000 Subject: [PATCH] use default theme if selected theme doesn't exist git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.1@552 7f39781d-f577-437e-ae19-be835c7a54ca --- index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/index.php b/index.php index 8c9d5c1b..ffe88746 100644 --- a/index.php +++ b/index.php @@ -35,6 +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"; require_once "themes/$_theme/page.class.php"; require_once "themes/$_theme/layout.class.php"; require_once "themes/$_theme/themelet.class.php";