Fix bug in Autoloader's library detection.
This commit is contained in:
parent
958efea5bd
commit
84e6224b1b
|
@ -63,7 +63,7 @@ protected static function find($class)
|
||||||
// If the library has been registered as a PSR-0 compliant library, we will
|
// If the library has been registered as a PSR-0 compliant library, we will
|
||||||
// load the library according to the PSR-0 naming standards, which state that
|
// load the library according to the PSR-0 naming standards, which state that
|
||||||
// namespaces and underscores indicate the directory hierarchy of the class.
|
// namespaces and underscores indicate the directory hierarchy of the class.
|
||||||
if (isset(static::$libraries[static::library($class)]))
|
if (in_array(static::library($class), static::$libraries))
|
||||||
{
|
{
|
||||||
return LIBRARY_PATH.str_replace(array('\\', '_'), '/', $class).EXT;
|
return LIBRARY_PATH.str_replace(array('\\', '_'), '/', $class).EXT;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue