- use $template_class property for template class name when compiling {include},{eval} and {extends} tags

This commit is contained in:
Uwe.Tews
2009-12-01 22:24:31 +00:00
parent 7e45bcf527
commit 2c23dccf3b
5 changed files with 5 additions and 4 deletions
@@ -32,7 +32,7 @@ class Smarty_Internal_Compile_Eval extends Smarty_Internal_CompileBase {
}
// create template object
$_output = "\$_template = new Smarty_Template ('string:'.".$_attr['var'].", \$_smarty_tpl->smarty, \$_smarty_tpl);";
$_output = "\$_template = new {$compiler->smarty->template_class}('string:'.".$_attr['var'].", \$_smarty_tpl->smarty, \$_smarty_tpl);";
//was there an assign attribute?
if (isset($_assign)) {
$_output .= "\$_smarty_tpl->assign($_assign,\$_template->getRenderedTemplate());";