mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-08 04:14:27 +02:00
- fix that {$smarty.current_dir} returns correct value within {block} tags.
This commit is contained in:
@@ -52,6 +52,7 @@ class Smarty_Internal_Compile_Extend extends Smarty_Internal_CompileBase {
|
|||||||
} else {
|
} else {
|
||||||
// compile block content
|
// compile block content
|
||||||
$_tpl = $this->compiler->smarty->createTemplate('string:' . $matches[3]);
|
$_tpl = $this->compiler->smarty->createTemplate('string:' . $matches[3]);
|
||||||
|
$_tpl->template_filepath = $this->compiler->template->getTemplateFilepath();
|
||||||
$_tpl->suppressHeader = true;
|
$_tpl->suppressHeader = true;
|
||||||
$_compiled_content = $_tpl->getCompiledTemplate();
|
$_compiled_content = $_tpl->getCompiledTemplate();
|
||||||
unset($_tpl);
|
unset($_tpl);
|
||||||
|
@@ -109,5 +109,4 @@ class Smarty_Internal_Compile_Internal_Smarty_Var extends Smarty_Internal_Compil
|
|||||||
return $compiled_ref;
|
return $compiled_ref;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user