mirror of
https://github.com/dg/dibi.git
synced 2025-10-29 04:37:17 +01:00
fixed bug 'interface IBarPanel not found' [Closes #137]
This commit is contained in:
@@ -111,7 +111,7 @@ class DibiConnection extends DibiObject
|
||||
$this->onEvent[] = array(new DibiFirePhpLogger($filter), 'logEvent');
|
||||
}
|
||||
|
||||
if (class_exists('DibiNettePanel') && !interface_exists('Tracy\IBarPanel')) {
|
||||
if (!interface_exists('Tracy\IBarPanel') && (interface_exists('Nette\Diagnostics\IBarPanel') || interface_exists('IBarPanel'))) {
|
||||
$panel = new DibiNettePanel(isset($profilerCfg['explain']) ? $profilerCfg['explain'] : TRUE, $filter);
|
||||
$panel->register($this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user