1
0
Fork 0
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:
Maxim 2011-07-29 17:01:09 +11:00
parent d9e48a47c3
commit 4292fcf528

View file

@ -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;