Fixed probelm with maintenance mode

This commit is contained in:
Hillel Coren 2015-09-29 08:23:30 +03:00
parent 3d88ec5c6d
commit 608d6c1831

View File

@ -47,8 +47,9 @@ class Handler extends ExceptionHandler {
if ($e instanceof ModelNotFoundException) {
return Redirect::to('/');
}
if (Utils::isNinjaProd()) {
// In production, except for maintenance mode, we'll show a custom error screen
if (Utils::isNinjaProd() && $e->getStatusCode() != 503) {
$data = [
'error' => get_class($e),
'hideHeader' => true,