diff --git a/change_log.txt b/change_log.txt index e2e14e8e..2491af62 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,6 +1,15 @@ ===== 3.1.22-dev ===== (xx.xx.2014) + 03.11.2014 + - bugfix Debug Console did not show included subtemplates since 3.1.17 (forum 25301) + - bugfix Modifier debug_print_var did not limit recursion or prevent recursive object display at Debug Console + (ATTENTION: parameter order has changed to be able to specify maximum recursion) + - bugfix Debug consol did not include subtemplate information with $smarty->merge_compiled_includes = true + - improvement The template variables are no longer displayed as objects on the Debug Console + - improvement $smarty->createData($parent = null, $name = null) new optional name parameter for display at Debug Console + - addition of some hooks for future extension of Debug Console + 01.11.2014 - -bugfix and enhancement on subtemplate {include} and template {function} tags. + - bugfix and enhancement on subtemplate {include} and template {function} tags. * Calling a template which has a nocache section could fail if it was called from a cached and a not cached subtemplate. * Calling the same subtemplate cached and not cached with the $smarty->merge_compiled_includes enabled could cause problems * Many smaller related changes diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index f9fb7be0..6dc549ad 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -110,7 +110,7 @@ class Smarty extends Smarty_Internal_TemplateBase /** * smarty version */ - const SMARTY_VERSION = 'Smarty-3.1.21-dev/2'; + const SMARTY_VERSION = '3.1.22-dev/2'; /** * define variable scopes @@ -1337,7 +1337,11 @@ class Smarty extends Smarty_Internal_TemplateBase $tpl->tpl_vars[$_key] = new Smarty_variable($_val); } } - + if ($this->debugging) { + if ($this->debugging) { + Smarty_Internal_Debug::register_template($tpl); + } + } return $tpl; } diff --git a/libs/debug.tpl b/libs/debug.tpl index 61b8876a..9ef8205a 100644 --- a/libs/debug.tpl +++ b/libs/debug.tpl @@ -5,7 +5,7 @@