From db2c655322a7f81b864165b0003e1b1aaab82fad Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Thu, 14 Jan 2010 16:43:43 +0000 Subject: [PATCH] - bugfix allow absolute filepath for config files --- change_log.txt | 1 + libs/sysplugins/smarty_internal_config.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/change_log.txt b/change_log.txt index d48b3271..7fa4ac8b 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,5 +1,6 @@ 01/14/2010 - bugfix on backslash within single quoted strings +- bugfix allow absolute filepath for config files 01/13/2010 - bugfix on {if} tags diff --git a/libs/sysplugins/smarty_internal_config.php b/libs/sysplugins/smarty_internal_config.php index 9dca29d3..31b41085 100644 --- a/libs/sysplugins/smarty_internal_config.php +++ b/libs/sysplugins/smarty_internal_config.php @@ -83,6 +83,9 @@ class Smarty_Internal_Config { if (file_exists($_filepath)) return $_filepath; } + // check for absolute path + if (file_exists($this->config_resource_name)) + return $this->config_resource_name; // no tpl file found throw new Exception("Unable to load config file \"{$this->config_resource_name}\""); return false;