From e060c3d1da82547ea0432cbfec66c72eef5c3ca5 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sun, 31 Jul 2011 23:11:45 -0500 Subject: [PATCH] added reload function to loader everything function. --- system/routing/loader.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/system/routing/loader.php b/system/routing/loader.php index bca992b0..e5de1f0b 100644 --- a/system/routing/loader.php +++ b/system/routing/loader.php @@ -51,11 +51,12 @@ class Loader { * To improve performance, this operation will only be performed once. The routes * will be cached and returned on every subsequent call. * + * @param bool $reload * @return array */ - public static function everything() + public static function everything($reload = false) { - if ( ! is_null(static::$routes)) return static::$routes; + if ( ! is_null(static::$routes) and ! $reload) return static::$routes; $routes = require APP_PATH.'routes'.EXT;