mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
- bugfix template inheritance did produce wrong code if subtemplates with {block} was
included several times (from smarty-developers forum)
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
===== trunk =====
|
===== trunk =====
|
||||||
|
15.08.2012
|
||||||
|
- bugfix template inheritance did produce wrong code if subtemplates with {block} was
|
||||||
|
included several times (from smarty-developers forum)
|
||||||
|
|
||||||
14.08.2012
|
14.08.2012
|
||||||
- bugfix PHP5.2 compatibility compromised by SplFileInfo::getBasename() (Issue 110)
|
- bugfix PHP5.2 compatibility compromised by SplFileInfo::getBasename() (Issue 110)
|
||||||
|
|
||||||
|
@@ -215,6 +215,8 @@ abstract class Smarty_Internal_TemplateCompilerBase {
|
|||||||
} else {
|
} else {
|
||||||
$code = $template_header . $template->createTemplateCodeFrame($_compiled_code) . $merged_code;
|
$code = $template_header . $template->createTemplateCodeFrame($_compiled_code) . $merged_code;
|
||||||
}
|
}
|
||||||
|
// unset content because template inheritance could have replace source with parent code
|
||||||
|
unset ($template->source->content);
|
||||||
return $code;
|
return $code;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user