From ef251c818d52d95c5c5b69893db9670962928b34 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Sat, 7 Jan 2012 23:00:07 -0800 Subject: [PATCH] Removed obsolete call --- flight/core/Loader.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/flight/core/Loader.php b/flight/core/Loader.php index 3688fbc..b398f09 100644 --- a/flight/core/Loader.php +++ b/flight/core/Loader.php @@ -9,7 +9,7 @@ namespace flight\core; /** - * The Loader class is resonsible for loading objects. It maintains + * The Loader class is responsible for loading objects. It maintains * a list of reusable class instances and can generate a new class * instances with custom initialization parameters. It also performs * class autoloading. @@ -83,11 +83,9 @@ class Loader { return $obj; } - $class = ucfirst($name); - return ($shared) ? - $this->getInstance($class) : - $this->newInstance($class); + $this->getInstance($name) : + $this->newInstance($name); } /**