- update realpath handling

This commit is contained in:
Uwe Tews
2015-06-21 13:53:52 +02:00
parent 666f7264f4
commit b64d5d26c9
5 changed files with 6 additions and 5 deletions
@@ -382,13 +382,13 @@ class Smarty_Internal_Compile_Private_Child_Block extends Smarty_Internal_Compil
// update template with original template resource of {block}
if (trim($_attr['type'], "'") == 'file') {
$compiler->template->template_resource = 'file:' . realpath(trim($_attr['file'], "'"));
$compiler->template->template_resource = 'file:' . $compiler->template->smarty->_realpath(trim($_attr['file'], "'"));
} else {
$compiler->template->template_resource = trim($_attr['resource'], "'");
}
// source object
unset ($compiler->template->source);
$exists = $compiler->template->source->exists;
$compiler->template->loadSource();
// must merge includes
if ($_attr['nocache'] == true) {