Edited system/router.php via GitHub

This commit is contained in:
Taylor Otwell 2011-07-19 06:23:16 -07:00
parent 3541c05ba2
commit 08010f4eb2
1 changed files with 2 additions and 2 deletions

View File

@ -73,8 +73,8 @@ private static function load_from_directory($uri)
{
$segments = explode('/', $uri);
// Route files can be nested deep within sub-directories. To find the appropriate file, we work our
// way backward through the URI looking for the deepest matching file.
// Route files can be nested deep within sub-directories.
// Iterate backwards through the URI looking for the deepest matching file.
foreach (array_reverse($segments, true) as $key => $value)
{
if (file_exists($path = APP_PATH.'routes/'.implode('/', array_slice($segments, 0, $key + 1)).EXT))