Commit 716a957e by Taylor Otwell

Refactoring.

parent bc7df55f
......@@ -37,7 +37,12 @@ class Loader {
{
$base = require $this->path.'routes'.EXT;
return (is_dir($this->path.'routes') and $uri != '') ? array_merge($this->load_nested_routes($uri), $base) : $base;
if ( ! is_dir($this->path.'routes') or $uri == '')
{
return $base;
}
return array_merge($this->load_nested_routes($uri), $base);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment