mirror of
https://github.com/smarty-php/smarty.git
synced 2026-04-29 18:23:24 +02:00
- bugfix internal template function data got stored in wrong compiled file https://github.com/smarty-php/smarty/issues/114
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user