Skip to content

Commit

Permalink
Added ability to set enable_profiler setting in FUEL to Fuel_hook::po…
Browse files Browse the repository at this point in the history
…st_controller
  • Loading branch information
daylightstudio committed Feb 18, 2016
1 parent 2e4e7b8 commit 7db5ad1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fuel/modules/fuel/hooks/Fuel_hooks.php
Expand Up @@ -110,7 +110,8 @@ public function offline()
public function post_controller()
{
$CI =& get_instance();
$CI->output->enable_profiler($CI->config->item('enable_profiler'));
$enable = $CI->config->item('enable_profiler') || $CI->fuel->config('enable_profiler');
$CI->output->enable_profiler($enable);
}
}

Expand Down

0 comments on commit 7db5ad1

Please sign in to comment.