Permalink
Browse files

Remove bug in class name management.

  • Loading branch information...
mageekguy committed Jan 10, 2013
1 parent 246d651 commit 724d3ee117695b8cce3b990cd3cb9fae3cec44a3
Showing with 3 additions and 3 deletions.
  1. +3 −3 classes/autoloader.php
View
@@ -109,15 +109,15 @@ public function getClassAliases()
public function getPath($class)
{
- $class = strtolower($class);
+ $caseInsentiveClass = strtolower($class);
foreach ($this->directories as $namespace => $directories)
{
- if ($class !== $namespace)
+ if ($caseInsentiveClass !== $namespace)
{
$namespaceLength = strlen($namespace);
- if (substr($class, 0, $namespaceLength) == $namespace)
+ if (substr($caseInsentiveClass, 0, $namespaceLength) == $namespace)
{
$classFile = str_replace('\\', DIRECTORY_SEPARATOR, substr($class, $namespaceLength)) . '.php';

0 comments on commit 724d3ee

Please sign in to comment.