use default theme if selected theme doesn't exist

git-svn-id: file:///home/shish/svn/shimmie2/trunk@551 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-10-22 00:04:41 +00:00
parent 380d13f3c9
commit cd176f9b19

View file

@ -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";