summaryrefslogtreecommitdiffstats
path: root/phpfspot_tmpl.php
diff options
context:
space:
mode:
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';