- bugfix the source exits flag and timestamp was not setup when temple is in php include path (issue 69)

This commit is contained in:
uwe.tews@googlemail.com
2011-12-16 17:00:51 +00:00
parent 36ec5acb0d
commit e439c13a3e
2 changed files with 26 additions and 21 deletions

View File

@@ -1,4 +1,7 @@
===== trunk =====
16.12.2011
- bugfix the source exits flag and timestamp was not setup when temple is in php include path (issue 69)
9.12.2011
- bugfix {capture} tags around recursive {include} calls did throw exception (Forum Topic 20549)
- bugfix $auto_literal = false did not work with { block} tags in child templates (Forum Topic 20581)

View File

@@ -265,7 +265,9 @@ abstract class Smarty_Resource {
if ($source->smarty->use_include_path && !preg_match('/^([\/\\\\]|[a-zA-Z]:[\/\\\\])/', $_directory)) {
// try PHP include_path
if (($_filepath = Smarty_Internal_Get_Include_Path::getIncludePath($_filepath)) !== false) {
return $_filepath;
if ($this->fileExists($source, $_filepath)) {
return $_filepath;
}
}
}
}