mirror of
https://github.com/dg/dibi.git
synced 2025-08-08 07:06:52 +02: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');
|
$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 = new DibiNettePanel(isset($profilerCfg['explain']) ? $profilerCfg['explain'] : TRUE, $filter);
|
||||||
$panel->register($this);
|
$panel->register($this);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user