From 51cc106811c036866c2aca7a910efc9c4f182902 Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Tue, 21 Jul 2009 16:26:11 +0000 Subject: [PATCH] - fix that {$smarty.current_dir} returns correct value within {block} tags. --- libs/sysplugins/internal.compile_extend.php | 1 + libs/sysplugins/internal.compile_internal_smarty_var.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/sysplugins/internal.compile_extend.php b/libs/sysplugins/internal.compile_extend.php index 0ab91a79..513a5097 100644 --- a/libs/sysplugins/internal.compile_extend.php +++ b/libs/sysplugins/internal.compile_extend.php @@ -52,6 +52,7 @@ class Smarty_Internal_Compile_Extend extends Smarty_Internal_CompileBase { } else { // compile block content $_tpl = $this->compiler->smarty->createTemplate('string:' . $matches[3]); + $_tpl->template_filepath = $this->compiler->template->getTemplateFilepath(); $_tpl->suppressHeader = true; $_compiled_content = $_tpl->getCompiledTemplate(); unset($_tpl); diff --git a/libs/sysplugins/internal.compile_internal_smarty_var.php b/libs/sysplugins/internal.compile_internal_smarty_var.php index d7efbf67..924d43ee 100644 --- a/libs/sysplugins/internal.compile_internal_smarty_var.php +++ b/libs/sysplugins/internal.compile_internal_smarty_var.php @@ -109,5 +109,4 @@ class Smarty_Internal_Compile_Internal_Smarty_Var extends Smarty_Internal_Compil return $compiled_ref; } } - ?>