fixed routing bug when using nested route directories.
This commit is contained in:
parent
2c68317b0d
commit
a7e39e9cf0
|
@ -68,6 +68,8 @@ public function load($uri)
|
||||||
if (file_exists($path = ROUTE_PATH.implode('/', array_slice($segments, 0, $key + 1)).EXT))
|
if (file_exists($path = ROUTE_PATH.implode('/', array_slice($segments, 0, $key + 1)).EXT))
|
||||||
{
|
{
|
||||||
$routes = require $path;
|
$routes = require $path;
|
||||||
|
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue