summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
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 9e6aaea14c..52255a3527 100644
--- a/index.php
+++ b/index.php
@@ -40,8 +40,6 @@ use Fisharebest\Webtrees\View;
use Fisharebest\Webtrees\Webtrees;
use League\Flysystem\Adapter\Local;
use League\Flysystem\Filesystem;
-use Symfony\Component\HttpFoundation\JsonResponse;
-use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
@@ -110,6 +108,7 @@ try {
$html = view('layouts/error', ['content' => $content]);
$response = new Response($html, Response::HTTP_SERVICE_UNAVAILABLE);
$response->prepare($request)->send();
+
return;
} catch (Throwable $exception) {
define('WT_DATA_DIR', 'data/');
@@ -118,6 +117,7 @@ try {
$html = view('layouts/error', ['content' => $content]);
$response = new Response($html, Response::HTTP_SERVICE_UNAVAILABLE);
$response->prepare($request)->send();
+
return;
}