mirror of
https://github.com/dg/dibi.git
synced 2025-08-22 21:54:05 +02:00
fixed Nette compatibility [Closes #23]
This commit is contained in:
@@ -25,10 +25,10 @@ if (version_compare(PHP_VERSION, '5.2.0', '<')) {
|
|||||||
/**
|
/**
|
||||||
* Compatibility with Nette
|
* Compatibility with Nette
|
||||||
*/
|
*/
|
||||||
if (interface_exists('Nette\\IDebugPanel', FALSE)) {
|
if (interface_exists('Nette\\IDebugPanel')) {
|
||||||
class_alias('Nette\\IDebugPanel', 'IDebugPanel');
|
class_alias('Nette\\IDebugPanel', 'IDebugPanel');
|
||||||
|
|
||||||
} elseif (!interface_exists('IDebugPanel', FALSE)) {
|
} elseif (!interface_exists('IDebugPanel')) {
|
||||||
interface IDebugPanel {}
|
interface IDebugPanel {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user