mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-05 20:24:18 +02:00
- bugfix allow array definitions as modifier parameter
- bugfix observe compile_check property when loading config files - added the template object as third filter parameter
This commit is contained in:
@@ -69,7 +69,7 @@ class Smarty_Internal_TemplateCompilerBase {
|
||||
$_content = $template->getTemplateSource();
|
||||
// run prefilter if required
|
||||
if (isset($this->smarty->autoload_filters['pre']) || isset($this->smarty->registered_filters['pre'])) {
|
||||
$_content = Smarty_Internal_Filter_Handler::runFilter('pre', $_content, $this->smarty);
|
||||
$_content = Smarty_Internal_Filter_Handler::runFilter('pre', $_content, $this->smarty, $template);
|
||||
}
|
||||
// on empty template just return header
|
||||
if ($_content == '') {
|
||||
@@ -92,7 +92,7 @@ class Smarty_Internal_TemplateCompilerBase {
|
||||
}
|
||||
// run postfilter if required
|
||||
if (isset($this->smarty->autoload_filters['post']) || isset($this->smarty->registered_filters['post'])) {
|
||||
$template->compiled_template = Smarty_Internal_Filter_Handler::runFilter('post', $template->compiled_template, $this->smarty);
|
||||
$template->compiled_template = Smarty_Internal_Filter_Handler::runFilter('post', $template->compiled_template, $this->smarty, $template);
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user