summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2018-12-08 14:21:48 +0000
committerGreg Roach <fisharebest@webtrees.net>2018-12-08 14:21:48 +0000
commit993b408626a00da02a1f284347adfd1a14caca40 (patch)
tree92d7ed4ed3c3653d85bc179bfbf6a36ffe28ef3e /index.php
parent91495569c5a00349a68e84e2297e0c2b3ffb458e (diff)
downloadwebtrees-993b408626a00da02a1f284347adfd1a14caca40.tar.gz
webtrees-993b408626a00da02a1f284347adfd1a14caca40.tar.bz2
webtrees-993b408626a00da02a1f284347adfd1a14caca40.zip
Unused import
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;
}