Commit 829088f3 authored by Taylor Otwell's avatar Taylor Otwell

use response::error in front controller.

parent e060c3d1
...@@ -152,7 +152,7 @@ if (is_null($response)) ...@@ -152,7 +152,7 @@ if (is_null($response))
{ {
$route = System\Routing\Router::make(Request::method(), Request::uri(), new System\Routing\Loader)->route(); $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 else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment