Permalink
Browse files

Fix problem with JLoader prefixes

  • Loading branch information...
1 parent 6db3e31 commit 5688e3cb2de298e56b3209bbd3294d57d518d6df @rvsjoen rvsjoen committed Jul 25, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 libraries/loader.php
View
3 libraries/loader.php
@@ -296,7 +296,8 @@ private static function _autoload($class)
{
foreach (self::$prefixes as $prefix => $lookup)
{
- if (strpos($class, $prefix) === 0)
+ $chr = strlen($prefix) < strlen($class) ? $class[strlen($prefix)] : 0;
+ if (strpos($class, $prefix) === 0 && ($chr === strtoupper($chr)))
{
return self::_load(substr($class, strlen($prefix)), $lookup);
}

0 comments on commit 5688e3c

Please sign in to comment.