Removed obsolete call

pull/11/head
Mike Cao 13 years ago
parent 830088733d
commit ef251c818d

@ -9,7 +9,7 @@
namespace flight\core; 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 * a list of reusable class instances and can generate a new class
* instances with custom initialization parameters. It also performs * instances with custom initialization parameters. It also performs
* class autoloading. * class autoloading.
@ -83,11 +83,9 @@ class Loader {
return $obj; return $obj;
} }
$class = ucfirst($name);
return ($shared) ? return ($shared) ?
$this->getInstance($class) : $this->getInstance($name) :
$this->newInstance($class); $this->newInstance($name);
} }
/** /**

Loading…
Cancel
Save