From fdf3073b23505e820cf8332612750e575e172a65 Mon Sep 17 00:00:00 2001 From: bjjay Date: Wed, 5 Aug 2015 17:58:36 +0800 Subject: Reduce once $config['query_toggle_count'] checking This checking can be done by calling set_sections method when initialize profiler . --- system/libraries/Profiler.php | 6 ------ 1 file changed, 6 deletions(-) (limited to 'system/libraries') 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) { -- cgit v1.2.3-24-g4f1b