summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r--phpfspot.class.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index f88ddf8..ca8542b 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -23,7 +23,6 @@
require_once "phpfspot_cfg.php";
require_once "phpfspot_db.php";
-require_once "phpfspot_tmpl.php";
class PHPFSPOT {
@@ -64,7 +63,10 @@ class PHPFSPOT {
}
$this->check_config_table();
-
+ /* include Smarty template engine */
+ require $this->cfg->smarty_path .'/libs/Smarty.class.php';
+ /* overload Smarty class if our own template handler */
+ require_once "phpfspot_tmpl.php";
$this->tmpl = new PHPFSPOT_TMPL($this);
$this->get_tags();