Permalink
Browse files

Merge pull request #53 from donatj/patch-1

Update accepted/PSR-0.md
  • Loading branch information...
2 parents 74ef01f + 5f80e82 commit cc72fba536ec4a17715c2bcb86349868bff4e771 @dragoonis dragoonis committed Nov 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 accepted/PSR-0.md
View
@@ -50,7 +50,7 @@ function autoload($className)
$className = ltrim($className, '\\');
$fileName = '';
$namespace = '';
- if ($lastNsPos = strripos($className, '\\')) {
+ if ($lastNsPos = strrpos($className, '\\')) {
$namespace = substr($className, 0, $lastNsPos);
$className = substr($className, $lastNsPos + 1);
$fileName = str_replace('\\', DIRECTORY_SEPARATOR, $namespace) . DIRECTORY_SEPARATOR;

0 comments on commit cc72fba

Please sign in to comment.