mirror of
https://github.com/Oreolek/debug-toolbar.git
synced 2024-04-25 13:49:19 +03:00
Merge pull request #14 from Big-Shark/d9e48a47c39b99fda5e34fa2c8a771687efed4b7
update 3.2 version
This commit is contained in:
commit
5c1e91a568
|
@ -53,7 +53,7 @@ abstract class Kohana_DebugToolbar {
|
|||
|
||||
$template = new View('toolbar');
|
||||
|
||||
$config = Kohana::config('debug_toolbar');
|
||||
$config = Kohana::$config->load('debug_toolbar');
|
||||
|
||||
// Database panel
|
||||
if ($config->panels['database'] === TRUE)
|
||||
|
@ -391,7 +391,7 @@ abstract class Kohana_DebugToolbar {
|
|||
*/
|
||||
public static function is_enabled()
|
||||
{
|
||||
$config = Kohana::config('debug_toolbar');
|
||||
$config = Kohana::$config->load('debug_toolbar');
|
||||
|
||||
// Auto render if secret key isset
|
||||
if ($config->secret_key !== FALSE and isset($_GET[$config->secret_key]))
|
||||
|
|
2
init.php
2
init.php
|
@ -1,7 +1,7 @@
|
|||
<?php defined('SYSPATH') or die('No direct script access.');
|
||||
|
||||
// Load FirePHP if it enabled in config
|
||||
if(Kohana::config('debug_toolbar.firephp_enabled') === TRUE)
|
||||
if(Kohana::$config->load('debug_toolbar.firephp_enabled') === TRUE)
|
||||
require_once Kohana::find_file('vendor', 'firephp/packages/core/lib/FirePHPCore/FirePHP.class');
|
||||
|
||||
// Render Debug Toolbar on the end of application execution
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue