mirror of
https://github.com/Oreolek/debug-toolbar.git
synced 2024-05-04 10:08:14 +03:00
Check if FirePHP already loaded
This commit is contained in:
parent
5bfde258b1
commit
1b138fe9f3
2
init.php
2
init.php
|
@ -1,7 +1,7 @@
|
||||||
<?php defined('SYSPATH') or die('No direct script access.');
|
<?php defined('SYSPATH') or die('No direct script access.');
|
||||||
|
|
||||||
// Load FirePHP if it enabled in config
|
// Load FirePHP if it enabled in config
|
||||||
if (Kohana::$config->load('debug_toolbar.firephp_enabled') === TRUE)
|
if (Kohana::$config->load('debug_toolbar.firephp_enabled') === TRUE && ! class_exists('FirePHP'))
|
||||||
{
|
{
|
||||||
$file = 'firephp/packages/core/lib/FirePHPCore/FirePHP.class';
|
$file = 'firephp/packages/core/lib/FirePHPCore/FirePHP.class';
|
||||||
$firePHP = Kohana::find_file('vendor', $file);
|
$firePHP = Kohana::find_file('vendor', $file);
|
||||||
|
|
Loading…
Reference in a new issue