mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-05 04:04:10 +02:00
- bugfix make sure that function properties get saved only in compiled files containing the fuction definition {forum topic 25452}
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user