- bugfix internal template function data got stored in wrong compiled file https://github.com/smarty-php/smarty/issues/114

This commit is contained in:
uwetews
2015-12-08 23:41:42 +01:00
parent be8340bef2
commit 29e2eb0bca
4 changed files with 47 additions and 31 deletions
@@ -149,6 +149,13 @@ abstract class Smarty_Internal_TemplateCompilerBase
*/
public $write_compiled_code = true;
/**
* Template functions
*
* @var array
*/
public $tpl_function = array();
/**
* called sub functions from template function
*
@@ -321,7 +328,7 @@ abstract class Smarty_Internal_TemplateCompilerBase
$this->compileTemplateSource($template, $nocache,
$parent_compiler),
$this->postFilter($this->blockOrFunctionCode) .
join('', $this->mergedSubTemplatesCode));
join('', $this->mergedSubTemplatesCode), false, $this);
return $_compiled_code;
}