commit
48b031af62
|
@ -409,15 +409,11 @@ abstract class Kohana_DebugToolbar {
|
|||
// Don't auto render toolbar for cli requests
|
||||
if (Kohana::$is_cli)
|
||||
return FALSE;
|
||||
|
||||
|
||||
// Don't auto render toolbar if $_GET['debug'] = 'false'
|
||||
if (isset($_GET['debug']) and strtolower($_GET['debug']) == 'false')
|
||||
return FALSE;
|
||||
|
||||
// Don't auto render if auto_render config is FALSE
|
||||
if ($config->auto_render !== TRUE)
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
}
|
3
init.php
3
init.php
|
@ -8,4 +8,5 @@ if(Kohana::$config->load('debug_toolbar.firephp_enabled') === TRUE){
|
|||
require_once $firePHP;
|
||||
}
|
||||
// Render Debug Toolbar on the end of application execution
|
||||
register_shutdown_function('debugtoolbar::render');
|
||||
if (Kohana::$config->load('debug_toolbar.auto_render') === TRUE)
|
||||
register_shutdown_function('debugtoolbar::render');
|
Loading…
Reference in New Issue