mirror of
https://github.com/Oreolek/debug-toolbar.git
synced 2024-05-19 09:28:14 +03:00
Added excluded_routes param (implements #32)
This commit is contained in:
parent
67cec4f7d5
commit
af01a82c91
|
@ -488,6 +488,11 @@ abstract class Kohana_Debugtoolbar {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( ! empty($config->excluded_routes) && in_array(Route::name(Request::initial()->route()), $config->excluded_routes))
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -42,4 +42,11 @@ $config['align'] = 'right';
|
||||||
*/
|
*/
|
||||||
$config['secret_key'] = FALSE;
|
$config['secret_key'] = FALSE;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Disabled routes
|
||||||
|
*/
|
||||||
|
$config['excluded_routes'] = array(
|
||||||
|
'docs/media' // Userguide media route
|
||||||
|
);
|
||||||
|
|
||||||
return $config;
|
return $config;
|
Loading…
Reference in a new issue