From cdda6b98d785f103d9be6643a99a882c0d65b64c Mon Sep 17 00:00:00 2001 From: fantu <fantu@ispconfig3> Date: Sun, 21 Dec 2008 04:51:07 -0500 Subject: [PATCH] fix parse error --- interface/lib/classes/tpl_ini.inc.php | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/interface/lib/classes/tpl_ini.inc.php b/interface/lib/classes/tpl_ini.inc.php index bbe26ea..2bfb96a 100644 --- a/interface/lib/classes/tpl_ini.inc.php +++ b/interface/lib/classes/tpl_ini.inc.php @@ -48,11 +48,8 @@ /** Returns $array of config vars for vlibTemplate */ public static function vlibTemplate() { - - global $conf; - $tpl_dir = $conf['rootpath'].'/web/themes/'.$_SESSION['s']['theme'].'/templates'; - + $tpl_dir = ISPC_THEMES_PATH.'/'.$_SESSION['s']['theme'].'/templates'; return array( 'TEMPLATE_DIR' => $tpl_dir, // Default directory for your template files (full path) @@ -89,8 +86,8 @@ /* the following are only used by the vlibTemplateCache class. */ - // TODO: triggers a notice as its not set - 'CACHE_DIRECTORY' => $conf['template']['cache_dir'], + // pedro notes:: triggers a notice as its not set - was $conf['template']['cache_dir'], + 'CACHE_DIRECTORY' => ISPC_CACHE_PATH, // Directory where the cached filesystem // will be set up (full path, and must be writable) // '/' or '\' off the end of the directory. -- Gitblit v1.9.1