Fix reinstall redirecting to legacy

This commit is contained in:
Jack Anderson 2024-10-02 13:07:51 +01:00 committed by y.yerli
parent 264019abc1
commit fc0079726e

View file

@ -15,6 +15,12 @@ $kernel = new Kernel($_SERVER['APP_ENV'], (bool)$_SERVER['APP_DEBUG']);
$configValues = $kernel->getConfigValues() ?? [];
$installerLocked = $configValues['installed_locked'] ?? false;
if (!$installerLocked && file_exists('legacy/config.php') && !empty($_POST['install-checked'])){
header('Location: .');
return;
}
if (!file_exists('legacy/config.php') && !file_exists('../.installed_checked') && !file_exists('../.curl_check_main_page')) {
if (empty($_POST['install-checked'])) {