summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-11-03 12:33:50 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-11-03 12:33:50 +0000
commitd1882698df97b2eabcf1135eef71e5a4547d4a8e (patch)
tree2080c97cc3c48a83fcac7eadf5f872ce7af3d29f /phpfspot.class.php
parent360821514a97c946ab0ae66a2677380ad72bd794 (diff)
issue77, make Smarty path configureable
git-svn-id: file:///var/lib/svn/phpfspot/trunk@288 fa6a889d-dae6-447d-9e79-4ba9a3039384
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();