Commit d95ead81 authored by Taylor Otwell's avatar Taylor Otwell

removed bloated if statement from front controller.

parent 794e0e6d
...@@ -93,14 +93,7 @@ if (is_null($response)) ...@@ -93,14 +93,7 @@ if (is_null($response))
{ {
$route = System\Router::route(Request::method(), Request::uri()); $route = System\Router::route(Request::method(), Request::uri());
if ( ! is_null($route)) $response = (is_null($route)) ? System\Response::make(View::make('error/404'), 404) : $route->call();
{
$response = $route->call();
}
else
{
$response = System\Response::make(View::make('error/404'), 404);
}
} }
else else
{ {
...@@ -128,4 +121,4 @@ if (System\Config::get('session.driver') != '') ...@@ -128,4 +121,4 @@ if (System\Config::get('session.driver') != '')
// -------------------------------------------------------------- // --------------------------------------------------------------
// Send the response to the browser. // Send the response to the browser.
// -------------------------------------------------------------- // --------------------------------------------------------------
$response->send(); $response->send();
\ No newline at end of file
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