From 20186dca0381896cf657b6384c190b8aac95bcb1 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sun, 14 Aug 2011 22:35:08 -0500 Subject: [PATCH] refactoring loader class. --- system/loader.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/system/loader.php b/system/loader.php index 303a3c32..a2300851 100644 --- a/system/loader.php +++ b/system/loader.php @@ -47,10 +47,7 @@ public static function load($class) { $file = strtolower(str_replace('\\', '/', $class)); - if (array_key_exists($class, static::$aliases)) - { - return class_alias(static::$aliases[$class], $class); - } + if (array_key_exists($class, static::$aliases)) return class_alias(static::$aliases[$class], $class); (static::load_from_registered($file)) or static::load_from_module($file); }