Skip to content

Commit

Permalink
Check if file exists in autoloader
Browse files Browse the repository at this point in the history
  • Loading branch information
AliasIO committed Jun 5, 2013
1 parent ce1f4cc commit d96d193
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Swiftlet/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,9 @@ public function autoload($className)

$file = str_replace('\\', '/', $match[1]) . str_replace('_', '/', $match[2]) . '.php';

require $file;
if ( file_exists($file) ) {
require $file;
}
}

/**
Expand Down

0 comments on commit d96d193

Please sign in to comment.