From b55e5169f32b94cc4f7467336de853d4e4b9e858 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sun, 31 Jul 2011 22:15:39 -0500 Subject: [PATCH] adjusted comments in route loader. --- system/routing/loader.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/system/routing/loader.php b/system/routing/loader.php index e9e291cd..bca992b0 100644 --- a/system/routing/loader.php +++ b/system/routing/loader.php @@ -25,9 +25,6 @@ public function load($uri) /** * Load the appropriate routes from the routes directory. * - * This is done by working down the URI until we find the deepest - * possible matching route file. - * * @param string $uri * @return array */ @@ -35,6 +32,8 @@ private function load_nested_routes($uri) { $segments = explode('/', $uri); + // Work backwards through the URI segments until we find the deepest possible + // matching route file in the routes directory. foreach (array_reverse($segments, true) as $key => $value) { if (file_exists($path = ROUTE_PATH.implode('/', array_slice($segments, 0, $key + 1)).EXT))