From c32251357dcc8a45b748ecf9bbc99b449de98be3 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Wed, 11 Jun 2014 16:16:32 +0200 Subject: [PATCH] fixed bug 'interface IBarPanel not found' [Closes #137] --- dibi/libs/DibiConnection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dibi/libs/DibiConnection.php b/dibi/libs/DibiConnection.php index 861c77ca..7faf6552 100644 --- a/dibi/libs/DibiConnection.php +++ b/dibi/libs/DibiConnection.php @@ -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); }