summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbjjay <fris@vip.qq.com>2015-08-05 11:58:36 +0200
committerbjjay <fris@vip.qq.com>2015-08-05 11:58:36 +0200
commitfdf3073b23505e820cf8332612750e575e172a65 (patch)
tree53d51626076f615e418dce3d53ca1d7602e3f0b1
parentabc299b3a234eb7da1b7e3d257b7eba2da649219 (diff)
Reduce once $config['query_toggle_count'] checking
This checking can be done by calling set_sections method when initialize profiler .
-rw-r--r--system/libraries/Profiler.php6
1 files changed, 0 insertions, 6 deletions
diff --git a/system/libraries/Profiler.php b/system/libraries/Profiler.php
index f35d23faf..1e464d8b0 100644
--- a/system/libraries/Profiler.php
+++ b/system/libraries/Profiler.php
@@ -100,12 +100,6 @@ class CI_Profiler {
$this->CI =& get_instance();
$this->CI->load->language('profiler');
- if (isset($config['query_toggle_count']))
- {
- $this->_query_toggle_count = (int) $config['query_toggle_count'];
- unset($config['query_toggle_count']);
- }
-
// default all sections to display
foreach ($this->_available_sections as $section)
{