Refactoring Router class.

This commit is contained in:
Taylor Otwell 2011-07-07 11:55:09 -07:00
parent 80c746edb2
commit 94ccbffb7d
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ public static function route($method, $uri)
if (is_null(static::$routes)) 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? // Is there an exact match for the request?