fixing some commits i accidently overwrote.

This commit is contained in:
Taylor Otwell
2011-11-21 19:13:32 -06:00
parent 994949c6ce
commit a675b05237
2 changed files with 7 additions and 7 deletions

View File

@@ -53,8 +53,8 @@ class Autoloader {
protected static function find($class)
{
// After PHP namespaces were introduced, most libaries ditched underscores for
// for namespaces to indicate the class directory hierarchy. We will check for
// the presence of namespace slashes to determine the directory separator.
// namespaces to indicate the class directory hierarchy. We will check for the
// presence of namespace slashes to determine the directory separator.
$separator = (strpos($class, '\\') !== false) ? '\\' : '_';
$library = substr($class, 0, strpos($class, $separator));