mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 21:00:39 +08:00
Fix reinstall redirecting to legacy
This commit is contained in:
parent
264019abc1
commit
fc0079726e
1 changed files with 6 additions and 0 deletions
|
@ -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'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue