- fix that {$smarty.current_dir} returns correct value within {block} tags.

This commit is contained in:
Uwe.Tews
2009-07-21 16:26:11 +00:00
parent 12ef15812c
commit 51cc106811
2 changed files with 1 additions and 1 deletions

View File

@@ -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);

View File

@@ -109,5 +109,4 @@ class Smarty_Internal_Compile_Internal_Smarty_Var extends Smarty_Internal_Compil
return $compiled_ref; return $compiled_ref;
} }
} }
?> ?>