- bugfix allow absolute filepath for config files

This commit is contained in:
Uwe.Tews
2010-01-14 16:43:43 +00:00
parent ecfc492298
commit db2c655322
2 changed files with 4 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
01/14/2010 01/14/2010
- bugfix on backslash within single quoted strings - bugfix on backslash within single quoted strings
- bugfix allow absolute filepath for config files
01/13/2010 01/13/2010
- bugfix on {if} tags - bugfix on {if} tags

View File

@@ -83,6 +83,9 @@ class Smarty_Internal_Config {
if (file_exists($_filepath)) if (file_exists($_filepath))
return $_filepath; return $_filepath;
} }
// check for absolute path
if (file_exists($this->config_resource_name))
return $this->config_resource_name;
// no tpl file found // no tpl file found
throw new Exception("Unable to load config file \"{$this->config_resource_name}\""); throw new Exception("Unable to load config file \"{$this->config_resource_name}\"");
return false; return false;