Changeset 3093

Show
Ignore:
Timestamp:
07/12/2008 11:31:18 AM (3 months ago)
Author:
Shadowhand
Message:

Changed Profiler to not dump entire object information stored in $_SESSION, but instead to list the class of the object with [object] after. This keeps the profiler data much more compact.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/Profiler.php

    r2774 r3093  
    208208                foreach($_SESSION as $name => $value) 
    209209                { 
     210                        if (is_object($value)) 
     211                        { 
     212                                $value = get_class($value).' [object]'; 
     213                        } 
     214 
    210215                        $data = array($name, $value); 
    211216                        $class = text::alternate('', 'kp-altrow');