1
0
mirror of https://github.com/dg/dibi.git synced 2025-02-24 10:53:17 +01:00

fixed Nette compatibility [Closes #23]

This commit is contained in:
David Grudl 2010-09-28 17:29:02 +02:00
parent c052582670
commit 90592929ec

View File

@ -25,10 +25,10 @@ if (version_compare(PHP_VERSION, '5.2.0', '<')) {
/**
* Compatibility with Nette
*/
if (interface_exists('Nette\\IDebugPanel', FALSE)) {
if (interface_exists('Nette\\IDebugPanel')) {
class_alias('Nette\\IDebugPanel', 'IDebugPanel');
} elseif (!interface_exists('IDebugPanel', FALSE)) {
} elseif (!interface_exists('IDebugPanel')) {
interface IDebugPanel {}
}