Commit f004ddce authored by Dayle Rees's avatar Dayle Rees

Merge pull request #1189 from kapv89/patch-5

Turn profiler off using runtime Config
parents fab4fda1 c1bcfec3
......@@ -27,7 +27,7 @@ class Profiler {
// We only want to send the profiler toolbar if the request is not an AJAX
// request, as sending it on AJAX requests could mess up JSON driven API
// type applications, so we will not send anything in those scenarios.
if ( ! Request::ajax())
if ( ! Request::ajax() and Config::get('application.profiler') )
{
static::$data['memory'] = get_file_size(memory_get_usage(true));
static::$data['memory_peak'] = get_file_size(memory_get_peak_usage(true));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment