1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 14:16:39 +02:00

fixed bug 'interface IBarPanel not found' [Closes #137]

This commit is contained in:
David Grudl
2014-06-11 16:16:32 +02:00
parent c23d9c2866
commit c32251357d

View File

@@ -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);
}