Commit 84e6224b authored by Taylor Otwell's avatar Taylor Otwell

Fix bug in Autoloader's library detection.

parent 958efea5
...@@ -63,7 +63,7 @@ class Autoloader { ...@@ -63,7 +63,7 @@ class Autoloader {
// 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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment