Fix bug in Autoloader's library detection.

This commit is contained in:
Taylor Otwell 2011-11-30 09:05:10 -06:00
parent 958efea5bd
commit 84e6224b1b
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }