diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2018-09-24 14:26:57 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2018-09-24 14:26:57 +0100 |
| commit | 155fc6ea653fc88878aee317a980f9c4c724d325 (patch) | |
| tree | c67c2d4180a3897684c42cec6eb2c8a9bcfa4c00 /index.php | |
| parent | 0ea23b7829d8bd38dc862b61285e14b0e1858a16 (diff) | |
| download | webtrees-155fc6ea653fc88878aee317a980f9c4c724d325.tar.gz webtrees-155fc6ea653fc88878aee317a980f9c4c724d325.tar.bz2 webtrees-155fc6ea653fc88878aee317a980f9c4c724d325.zip | |
Replace magic numbers with constants
Diffstat (limited to 'index.php')
| -rw-r--r-- | index.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -147,7 +147,7 @@ try { $content = view('errors/database-error', ['error' => $ex->getMessage()]); } $html = view('layouts/error', ['content' => $content]); - $response = new Response($html, 503); + $response = new Response($html, Response::HTTP_SERVICE_UNAVAILABLE); $response->prepare($request)->send(); return; } catch (Throwable $ex) { @@ -157,7 +157,7 @@ try { I18N::init(); $content = view('errors/database-connection', ['error' => $ex->getMessage()]); $html = view('layouts/error', ['content' => $content]); - $response = new Response($html, 503); + $response = new Response($html, Response::HTTP_SERVICE_UNAVAILABLE); $response->prepare($request)->send(); return; } |
