Commit 94ccbffb authored by Taylor Otwell's avatar Taylor Otwell

Refactoring Router class.

parent 80c746ed
......@@ -23,7 +23,7 @@ class Router {
if (is_null(static::$routes))
{
static::$routes = ( ! is_dir(APP_PATH.'routes')) ? require APP_PATH.'routes'.EXT : static::load($uri);
static::$routes = (is_dir(APP_PATH.'routes')) ? static::load($uri) : require APP_PATH.'routes'.EXT;
}
// Is there an exact match for the request?
......
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