Merge pull request #171 from daniels0xff/develop

Develop
This commit is contained in:
Taylor Otwell
2011-11-21 13:31:22 -08:00
2 changed files with 4 additions and 3 deletions

3
.gitignore vendored
View File

@@ -1 +1,2 @@
favicon.* favicon.*
.DS_Store

View File

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