summaryrefslogtreecommitdiffstats
path: root/phpfspot_tmpl.php
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-07-22 05:49:09 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-07-22 05:49:09 +0000
commit75a329ec022ef21019afb17aecf776a10083e0cb (patch)
treebd9b22ce6004ac2f11ac189e39cc75bf1439b13a /phpfspot_tmpl.php
parent5369d6897b8d04f8733b852a16639b949077b0b8 (diff)
issue61, theme support
git-svn-id: file:///var/lib/svn/phpfspot/trunk@237 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'phpfspot_tmpl.php')
-rw-r--r--phpfspot_tmpl.php7
1 files changed, 6 insertions, 1 deletions
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';