From 60c143f1449ade99036a49d3ae9fa566fb8a51b4 Mon Sep 17 00:00:00 2001 From: boots Date: Mon, 20 Nov 2006 21:04:17 +0000 Subject: [PATCH] fix depth formatting of arrays and objects in modifier debug_print_var --- libs/plugins/modifier.debug_print_var.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/plugins/modifier.debug_print_var.php b/libs/plugins/modifier.debug_print_var.php index aeba8e15..e4f7bc0c 100644 --- a/libs/plugins/modifier.debug_print_var.php +++ b/libs/plugins/modifier.debug_print_var.php @@ -35,6 +35,7 @@ function smarty_modifier_debug_print_var($var, $depth = 0, $length = 40) $results .= '
' . str_repeat(' ', $depth * 2) . '' . strtr($curr_key, $_replace) . ' => ' . smarty_modifier_debug_print_var($curr_val, ++$depth, $length); + $depth--; } break; case 'object' : @@ -42,8 +43,9 @@ function smarty_modifier_debug_print_var($var, $depth = 0, $length = 40) $results = '' . get_class($var) . ' Object (' . count($object_vars) . ')'; foreach ($object_vars as $curr_key => $curr_val) { $results .= '
' . str_repeat(' ', $depth * 2) - . '' . strtr($curr_key, $_replace) . ' => ' + . ' ->' . strtr($curr_key, $_replace) . ' = ' . smarty_modifier_debug_print_var($curr_val, ++$depth, $length); + $depth--; } break; case 'boolean' :