Show
Ignore:
Timestamp:
01/06/2008 02:31:17 AM (11 months ago)
Author:
Geert
Message:
  • Added cookie data to the Profiler
  • Translators: update profiler file please
  • Also fixed small bug in Profiler library: now using stripos() in combination with str_ireplace() to add profiler data before </body>
Files:
1 modified

Legend:

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

    r1522 r1684  
    7878                } 
    7979 
     80                if (Config::item('profiler.cookie')) 
     81                { 
     82                        $data['cookie'] = TRUE; 
     83                } 
     84 
    8085                // Load the profiler view 
    8186                $view = new View('kohana_profiler', $data); 
    82                  
     87 
    8388                // Return rendered view if $return is TRUE 
    8489                if ($return == TRUE) 
     
    8994                { 
    9095                        // Closing body tag was found, insert the profiler data before it 
    91                         Kohana::$output = str_replace('</body>', $view->render().'</body>', Kohana::$output); 
     96                        Kohana::$output = str_ireplace('</body>', $view->render().'</body>', Kohana::$output); 
    9297                } 
    9398                else