From 9403df44c7fe6d3fbb3815daa89457c39e3c8ab4 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 16 Aug 2007 20:23:57 +0000 Subject: [PATCH] Do not use BSApp::GetAppPath() anymore for the template path, but instead use a fully-qualified path in BSTemplate->templateDir * Template.php: (BSTemplate::cache) (BSTemplate::_loadTemplate) --- Template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Template.php b/Template.php index e20a6eb..81f7062 100644 --- a/Template.php +++ b/Template.php @@ -173,7 +173,7 @@ class BSTemplate $cache = $db->query("SELECT * FROM {$this->dbCacheTable} WHERE filename IN ('" . implode("', '", $namearray) . "')"); while ($tpl = $db->fetchArray($cache)) { - $time = filemtime(BSApp::GetAppPath() . $this->templateDir . $tpl['filename'] . '.' . $this->extension); + $time = filemtime($this->templateDir . $tpl['filename'] . '.' . $this->extension); $template = $tpl['template']; if ($time > $tpl['timestamp']) { @@ -332,7 +332,7 @@ class BSTemplate */ protected function _loadTemplate($name) { - $path = BSApp::GetAppPath() . $this->templateDir . $name . '.' . $this->extension; + $path = $this->templateDir . $name . '.' . $this->extension; if (is_file($path)) { if (($template = @file_get_contents($path)) !== false) -- 2.43.5