summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2018-09-24 14:26:57 +0100
committerGreg Roach <fisharebest@webtrees.net>2018-09-24 14:26:57 +0100
commit155fc6ea653fc88878aee317a980f9c4c724d325 (patch)
treec67c2d4180a3897684c42cec6eb2c8a9bcfa4c00 /index.php
parent0ea23b7829d8bd38dc862b61285e14b0e1858a16 (diff)
downloadwebtrees-155fc6ea653fc88878aee317a980f9c4c724d325.tar.gz
webtrees-155fc6ea653fc88878aee317a980f9c4c724d325.tar.bz2
webtrees-155fc6ea653fc88878aee317a980f9c4c724d325.zip
Replace magic numbers with constants
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index c671c3fbf6..e54225ccc1 100644
--- a/index.php
+++ b/index.php
@@ -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;
}