mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
- bugfix prefilter did run multiple times on inline subtemplates compiled into several main templates (Forum Topic 21325)
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
===== trunk =====
|
||||
27.03.2012
|
||||
- bugfix prefilter did run multiple times on inline subtemplates compiled into several main templates (Forum Topic 21325)
|
||||
|
||||
21.03.2012
|
||||
- bugfix compileAllTemplates() and compileAllConfig() did not return the number of compiled files (Forum Topic 21286)
|
||||
|
||||
|
@@ -161,7 +161,7 @@ abstract class Smarty_Internal_TemplateCompilerBase {
|
||||
$_content = $template->source->content;
|
||||
// run prefilter if required
|
||||
if (isset($this->smarty->autoload_filters['pre']) || isset($this->smarty->registered_filters['pre'])) {
|
||||
$template->source->content = $_content = Smarty_Internal_Filter_Handler::runFilter('pre', $_content, $template);
|
||||
$_content = Smarty_Internal_Filter_Handler::runFilter('pre', $_content, $template);
|
||||
}
|
||||
// on empty template just return header
|
||||
if ($_content == '') {
|
||||
|
Reference in New Issue
Block a user