mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
- bugfix allow absolute filepath for config files
This commit is contained in:
@@ -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
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user