added check for .php in route finder glob.

This commit is contained in:
Taylor Otwell 2011-07-27 22:27:35 -05:00
parent 099a880345
commit 29b98b2acb
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ private static function load()
foreach ($recursiveIterator as $file) foreach ($recursiveIterator as $file)
{ {
if (filetype($file) === 'file') if (filetype($file) === 'file' and strpos($file, EXT) !== false)
{ {
$routes = array_merge(require $file, $routes); $routes = array_merge(require $file, $routes);
} }