From bf30ca7238203f224e32b1c88037b5ec774b0f85 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 1 Aug 2011 15:36:49 -0500 Subject: [PATCH] Pass path to route loader. --- public/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/index.php b/public/index.php index 214ebdd9..053eb6fa 100644 --- a/public/index.php +++ b/public/index.php @@ -8,6 +8,8 @@ * @link http://laravel.com */ +$t = microtime(true); + // -------------------------------------------------------------- // The path to the application directory. // -------------------------------------------------------------- @@ -160,7 +162,7 @@ // ---------------------------------------------------------- if (is_null($response)) { - $route = System\Routing\Router::make(System\Request::method(), System\Request::uri(), new System\Routing\Loader)->route(); + $route = System\Routing\Router::make(System\Request::method(), System\Request::uri(), new System\Routing\Loader(APP_PATH))->route(); $response = (is_null($route)) ? System\Response::error('404') : $route->call(); }