- bugfix multiple {include} with relative filepath within {block}{/block} could fail https://github.com/smarty-php/smarty/issues/246 (reverted from commit 09d8eab89f) (reverted from commit 3fdd9e4b89)

This commit is contained in:
uwetews
2016-07-19 00:25:49 +02:00
parent e865374fc2
commit afb971f84b

View File

@@ -262,9 +262,6 @@ class Smarty_Internal_Template extends Smarty_Internal_TemplateBase
$forceTplCache, $uid = null, $content_func = null)
{
$tpl = clone $this;
if (isset($this->inheritance)) {
unset($tpl->startRenderCallbacks[ 'inheritance' ], $tpl->endRenderCallbacks[ 'inheritance' ]);
}
$tpl->parent = $this;
$smarty = &$this->smarty;
$_templateId = $smarty->_getTemplateId($template, $cache_id, $compile_id, $caching, $tpl);