- bugfix on template inheritance when an {extends} tag was inserted by a prefilter

This commit is contained in:
uwe.tews@googlemail.com
2010-11-22 19:43:11 +00:00
parent f14de1689c
commit 1153ea5a5a
2 changed files with 4 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
22/11/2010
- bugfix on template inheritance when an {extends} tag was inserted by a prefilter
===== Smarty 3.0.5 =====

View File

@@ -67,7 +67,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, $template);
$template->template_source = $_content = Smarty_Internal_Filter_Handler::runFilter('pre', $_content, $template);
}
// on empty template just return header
if ($_content == '') {