X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot.class.php;h=ca8542b6df1174a871a9f091c17e42edc271f15f;hp=f88ddf815b9cd1a66fa3045ca8ba3bc2c561eeb2;hb=d1882698df97b2eabcf1135eef71e5a4547d4a8e;hpb=360821514a97c946ab0ae66a2677380ad72bd794 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();