From 75a329ec022ef21019afb17aecf776a10083e0cb Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sun, 22 Jul 2007 05:49:09 +0000 Subject: issue61, theme support git-svn-id: file:///var/lib/svn/phpfspot/trunk@237 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- phpfspot_tmpl.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'phpfspot_tmpl.php') diff --git a/phpfspot_tmpl.php b/phpfspot_tmpl.php index 9609477..996ff44 100644 --- a/phpfspot_tmpl.php +++ b/phpfspot_tmpl.php @@ -29,8 +29,13 @@ class PHPFSPOT_TMPL extends Smarty { public function __construct($parent) { + if(!file_exists($parent->cfg->base_path .'/themes/'. $parent->cfg->theme_name .'/templates')) { + print "No templates found in ". $parent->cfg->base_path .'/themes/'. $parent->cfg->theme_name .'/templates'; + exit(1); + } + $this->Smarty(); - $this->template_dir = $parent->cfg->base_path .'/templates'; + $this->template_dir = $parent->cfg->base_path .'/themes/'. $parent->cfg->theme_name .'/templates'; $this->compile_dir = $parent->cfg->base_path .'/templates_c'; $this->config_dir = $parent->cfg->base_path .'/smarty_config'; $this->cache_dir = $parent->cfg->base_path .'/smarty_cache'; -- cgit v1.2.3-18-g5258