mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
- bugfix on template inheritance when an {extends} tag was inserted by a prefilter
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
22/11/2010
|
||||||
|
- bugfix on template inheritance when an {extends} tag was inserted by a prefilter
|
||||||
|
|
||||||
===== Smarty 3.0.5 =====
|
===== Smarty 3.0.5 =====
|
||||||
|
|
||||||
|
|
||||||
|
@@ -67,7 +67,7 @@ class Smarty_Internal_TemplateCompilerBase {
|
|||||||
$_content = $template->getTemplateSource();
|
$_content = $template->getTemplateSource();
|
||||||
// run prefilter if required
|
// run prefilter if required
|
||||||
if (isset($this->smarty->autoload_filters['pre']) || isset($this->smarty->registered_filters['pre'])) {
|
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
|
// on empty template just return header
|
||||||
if ($_content == '') {
|
if ($_content == '') {
|
||||||
|
Reference in New Issue
Block a user