From 829088f3d19431362416dc109c23e10e0db305fe Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sun, 31 Jul 2011 23:19:58 -0500 Subject: [PATCH] use response::error in front controller. --- public/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.php b/public/index.php index edc83edc..11de2ee4 100644 --- a/public/index.php +++ b/public/index.php @@ -152,7 +152,7 @@ if (is_null($response)) { $route = System\Routing\Router::make(Request::method(), Request::uri(), new System\Routing\Loader)->route(); - $response = (is_null($route)) ? System\Response::make(System\View::make('error/404'), 404) : $route->call(); + $response = (is_null($route)) ? System\Response::error('404') : $route->call(); } else {