removed bloated if statement from front controller.
This commit is contained in:
parent
794e0e6d17
commit
d95ead812a
|
@ -93,14 +93,7 @@
|
||||||
{
|
{
|
||||||
$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 @@
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
// Send the response to the browser.
|
// Send the response to the browser.
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
$response->send();
|
$response->send();
|
Loading…
Reference in New Issue