Add Redirect to install.php

This commit is contained in:
Jack Anderson 2024-01-09 10:12:09 +00:00
parent 32871f9a4a
commit df60b62778

View file

@ -23,6 +23,11 @@ if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? $_ENV['TRUSTED_HOSTS'] ?? false
Request::setTrustedHosts([$trustedHosts]);
}
if (!file_exists('legacy/config.php') && !file_exists('.installed_checked')){
header('Location: install.php');
return;
}
// Get the autoloader class
require __DIR__ . '/../vendor/autoload.php';