- bugfix make sure that function properties get saved only in compiled files containing the fuction definition {forum topic 25452}

This commit is contained in:
Uwe Tews
2015-03-20 00:41:55 +01:00
parent 03c7b786a0
commit 4ecc75344f
4 changed files with 12 additions and 5 deletions
@@ -325,9 +325,6 @@ abstract class Smarty_Internal_TemplateCompilerBase
if ((isset($this->smarty->autoload_filters['post']) || isset($this->smarty->registered_filters['post'])) && !$this->suppressFilter && $_compiled_code != '') {
$_compiled_code = Smarty_Internal_Filter_Handler::runFilter('post', $_compiled_code, $template);
}
if (!empty($this->templateProperties)) {
$this->template->properties['tpl_function'] = $this->templateProperties['tpl_function'];
}
if ($this->suppressTemplatePropertyHeader) {
$_compiled_code .= $merged_code;
} else {