mirror of
https://github.com/dg/dibi.git
synced 2025-08-07 14:46:50 +02:00
DibiNettePanel: fixed doubled alias
This commit is contained in:
@@ -49,7 +49,7 @@ class DibiNettePanel extends DibiObject implements IBarPanel
|
|||||||
|
|
||||||
public function register(DibiConnection $connection)
|
public function register(DibiConnection $connection)
|
||||||
{
|
{
|
||||||
if (is_callable('Nette\Diagnostics\Debugger::enable')) {
|
if (is_callable('Nette\Diagnostics\Debugger::enable') && !class_exists('NDebugger')) {
|
||||||
class_alias('Nette\Diagnostics\Debugger', 'NDebugger'); // PHP 5.2 code compatibility
|
class_alias('Nette\Diagnostics\Debugger', 'NDebugger'); // PHP 5.2 code compatibility
|
||||||
}
|
}
|
||||||
if (is_callable('NDebugger::enable')) {
|
if (is_callable('NDebugger::enable')) {
|
||||||
|
Reference in New Issue
Block a user