[Legacy] Add check for install on legacy

This commit is contained in:
Jack Anderson 2024-09-04 13:30:01 +01:00 committed by Clemente Raposo
parent b499c28a30
commit 7ffdb9a325

View file

@ -42,6 +42,14 @@ if (!defined('sugarEntry')) {
define('sugarEntry', true);
}
if (!file_exists('./config.php') && file_exists('../../.installed_checked')) {
header('Location: ../#/install');
}
if (!file_exists('../../.installed_checked')){
header('Location: ../install.php');
}
// Set Globals
global $sugar_version;
global $current_user, $sugar_config;