cvs: smarty /libs/plugins modifier.debug_print_var.php

From: Date: Mon, 20 Nov 2006 21:04:17 +0000
Subject: cvs: smarty /libs/plugins modifier.debug_print_var.php
Groups: php.smarty.cvs 
Request: Send a blank email to php-smarty-cvs+get-2173@lists.php.net to get a copy of this message
boots Mon Nov 20 21:04:17 2006 UTC Modified files: /smarty/libs/plugins modifier.debug_print_var.php Log: fix depth formatting of arrays and objects in modifier debug_print_var http://cvs.php.net/viewvc.cgi/smarty/libs/plugins/modifier.debug_print_var.php?r1=1.13&r2=1.14&diff_format=u Index: smarty/libs/plugins/modifier.debug_print_var.php diff -u smarty/libs/plugins/modifier.debug_print_var.php:1.13 smarty/libs/plugins/modifier.debug_print_var.php:1.14 --- smarty/libs/plugins/modifier.debug_print_var.php:1.13 Tue Nov 7 20:32:56 2006 +++ smarty/libs/plugins/modifier.debug_print_var.php Mon Nov 20 21:04:17 2006 @@ -35,6 +35,7 @@ $results .= '<br>' . str_repeat('&nbsp;', $depth * 2) . '<b>' . strtr($curr_key, $_replace) . '</b> =&gt; ' . smarty_modifier_debug_print_var($curr_val, ++$depth, $length); + $depth--; } break; case 'object' : @@ -42,8 +43,9 @@ $results = '<b>' . get_class($var) . ' Object (' . count($object_vars) . ')</b>'; foreach ($object_vars as $curr_key => $curr_val) { $results .= '<br>' . str_repeat('&nbsp;', $depth * 2) - . '<b>' . strtr($curr_key, $_replace) . '</b> =&gt; ' + . '<b> -&gt;' . strtr($curr_key, $_replace) . '</b> = ' . smarty_modifier_debug_print_var($curr_val, ++$depth, $length); + $depth--; } break; case 'boolean' :

« previous php.smarty.cvs (#2173) next »