- bugfix enable debugging could fail when template objects did already exists https://github.com/smarty-php/smarty/issues/237

This commit is contained in:
uwetews
2016-07-13 01:07:53 +02:00
parent 31f6afd16e
commit 38b13661fe
7 changed files with 27 additions and 5 deletions

View File

@@ -147,6 +147,9 @@ class Smarty_Template_Compiled extends Smarty_Template_Resource_Base
public function render(Smarty_Internal_Template $_template)
{
if ($_template->smarty->debugging) {
if (!isset($_template->smarty->_debug)) {
$_template->smarty->_debug = new Smarty_Internal_Debug();
}
$_template->smarty->_debug->start_render($_template);
}
if (!$this->processed) {