mirror of
https://github.com/Oreolek/debug-toolbar.git
synced 2024-04-25 21:59:17 +03:00
autorender if cli = false
This commit is contained in:
parent
d9e48a47c3
commit
4292fcf528
|
@ -406,6 +406,10 @@ abstract class Kohana_DebugToolbar {
|
|||
if (Request::initial()->is_ajax())
|
||||
return FALSE;
|
||||
|
||||
// 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;
|
||||
|
|
Loading…
Reference in a new issue