diff --git a/system/router.php b/system/router.php index 5ac5c765..c134828b 100644 --- a/system/router.php +++ b/system/router.php @@ -23,7 +23,7 @@ public static function route($method, $uri) 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?