forked from extern/egroupware
Update autoload.php
- add interface exist check for interface loading by vendor classes
This commit is contained in:
parent
cace666818
commit
1fe5478761
@ -54,7 +54,7 @@ spl_autoload_register(function($class)
|
|||||||
{
|
{
|
||||||
require_once($al);
|
require_once($al);
|
||||||
|
|
||||||
if (class_exists($partclass = implode('\\', $parts), true))
|
if (class_exists($partclass = implode('\\', $parts), true) || interface_exists($partclass, true))
|
||||||
{
|
{
|
||||||
class_alias($partclass, $class);
|
class_alias($partclass, $class);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user