From 94ccbffb7d2997b8da15e96830fafc4b52431a86 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 7 Jul 2011 11:55:09 -0700 Subject: [PATCH] Refactoring Router class. --- system/router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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?