- bugfix plugins of merged subtemplates not loaded in 3.1.22-dev (forum topic 25508)

This commit is contained in:
Uwe Tews
2015-04-28 01:38:45 +02:00
parent c7ba22dc98
commit e312dd9b59
3 changed files with 5 additions and 1 deletions

View File

@@ -211,6 +211,7 @@ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase
}
$compiler->parent_compiler->mergedSubTemplatesCode[$tpl->properties['unifunc']] = $compiled_code;
$has_compiled_template = true;
$compiler->template->required_plugins = array_merge_recursive($compiler->template->required_plugins, $tpl->required_plugins);
unset ($tpl);
}
} else {