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:
parent
380d13f3c9
commit
cd176f9b19
1 changed files with 1 additions and 0 deletions
|
@ -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";
|
||||
|
|
Reference in a new issue