summaryrefslogtreecommitdiffstats
path: root/system/libraries/Profiler.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-16 00:12:56 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-16 00:12:56 +0200
commit0140ddd510edffb901b98de6b80676ece183760c (patch)
tree62e4e2d65cca06a1fa8fcba6e2f2b73cc1196b79 /system/libraries/Profiler.php
parent58ae971ba248cf3e32a139088c3833c9735028de (diff)
Fix issue #318 + added a default to the switch() in CI_Output::minify()
Diffstat (limited to 'system/libraries/Profiler.php')
-rw-r--r--system/libraries/Profiler.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/system/libraries/Profiler.php b/system/libraries/Profiler.php
index d96088c14..1e961f6df 100644
--- a/system/libraries/Profiler.php
+++ b/system/libraries/Profiler.php
@@ -116,6 +116,12 @@ class CI_Profiler {
*/
public function set_sections($config)
{
+ if (isset($config['query_toggle_count']))
+ {
+ $this->_query_toggle_count = (int) $config['query_toggle_count'];
+ unset($config['query_toggle_count']);
+ }
+
foreach ($config as $method => $enable)
{
if (in_array($method, $this->_available_sections))