new $smarty->debug options

- new feature $smarty->debug = true; => overwrite existing Debug Console
window (old behaviour)
$smarty->debug = 2; => individual Debug Console window by template name
This commit is contained in:
Uwe Tews
2014-11-04 18:59:57 +01:00
parent 158b7be58a
commit 963e5dae5e
3 changed files with 7 additions and 1 deletions
@@ -221,6 +221,7 @@ class Smarty_Internal_Debug extends Smarty_Internal_Data
$_template->assign('assigned_vars', $_assigned_vars);
$_template->assign('config_vars', $_config_vars);
$_template->assign('execution_time', microtime(true) - $smarty->start_time);
$_template->assign('display_mode', $smarty->debugging == 2 || !$full);
echo $_template->fetch();
if ($full) {
self::$ignore_uid = array();