summaryrefslogtreecommitdiffstats
path: root/system/libraries/Profiler.php
diff options
context:
space:
mode:
authorGreg Aker <greg@gregaker.net>2010-04-29 20:41:39 +0200
committerGreg Aker <greg@gregaker.net>2010-04-29 20:41:39 +0200
commite602683aa6362e2efeb03408cea749cfeaaeef4f (patch)
treeca9a74435e450ed061020888c5838fc8b5d5db94 /system/libraries/Profiler.php
parent42526cf74a61a350ff26904c52b4315229e077f2 (diff)
Changing order of available sections in the output profiler.
Diffstat (limited to 'system/libraries/Profiler.php')
-rw-r--r--system/libraries/Profiler.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/system/libraries/Profiler.php b/system/libraries/Profiler.php
index 3285bc531..49a6774c1 100644
--- a/system/libraries/Profiler.php
+++ b/system/libraries/Profiler.php
@@ -36,14 +36,14 @@ class CI_Profiler {
var $_available_sections = array(
'benchmarks',
- 'config',
- 'controller_info',
'get',
- 'http_headers',
'memory_usage',
'post',
+ 'uri_string',
+ 'controller_info',
'queries',
- 'uri_string'
+ 'http_headers',
+ 'config'
);
function CI_Profiler($config = array())
@@ -459,6 +459,11 @@ class CI_Profiler {
foreach($this->CI->config->config as $config=>$val)
{
+ if (is_array($val))
+ {
+ $val = print_r($val, TRUE);
+ }
+
$output .= "<tr><td valign='top' style='color:#900;background-color:#ddd;'>".$config."&nbsp;&nbsp;</td><td style='color:#000;background-color:#ddd;'>".$val."</td></tr>\n";
}