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

View File

@@ -77,7 +77,7 @@ class Finder {
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);
} }