added changelog entries for version 1.1
[phpfspot.git] / phpfspot_tmpl.php
index 9609477f0b7cbcaf06dbd5ce15213ddc2afe3d43..996ff443d0a17076d8cb8251e933d6e9b282be30 100644 (file)
@@ -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';