From 783101cc7a478cbbf7da4cd0ef9f88c91fa1c605 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 22 Nov 2011 18:03:37 -0600 Subject: [PATCH] fixed bug in autoloader. --- laravel/autoloader.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/laravel/autoloader.php b/laravel/autoloader.php index 7b574537..50f9c664 100644 --- a/laravel/autoloader.php +++ b/laravel/autoloader.php @@ -10,7 +10,14 @@ class Autoloader { public static $mappings = array(); /** - * The paths to be searched by the auto-loader. + * The PSR-0 compliant libraries registered with the loader. + * + * @var array + */ + public static $libraries = array(); + + /** + * The paths to be searched by the loader. * * @var array */ @@ -68,7 +75,7 @@ protected static function find($class) foreach (static::$paths as $path) { - if (file_exists($path = $path.$lower.EXT)) + if (file_exists($path = $path.$file.EXT)) { return $path; }