[Legacy] Redirect Legacy Install to Suite 8

This commit is contained in:
Jack Anderson 2024-01-09 14:22:10 +00:00
parent 10b33547e0
commit 2bfdae9f5e

View file

@ -58,10 +58,11 @@ require_once 'include/SugarObjects/SugarConfig.php';
if (empty($GLOBALS['installing']) && !file_exists('config.php')) {
header('Location: install.php');
header('Location: ../../public/install.php');
if (isset($GLOBALS['log'])) {
$GLOBALS['log']->fatal('SuiteCRM is not installed. Entry point needs an installed SuiteCRM, please install first.');
}
return;
}
$BASE_DIR = realpath(dirname(__DIR__));
@ -96,7 +97,8 @@ if (is_file('config_override.php')) {
require_once 'config_override.php';
}
if (empty($GLOBALS['installing']) && empty($sugar_config['dbconfig']['db_name'])) {
header('Location: install.php');
header('Location: ../../public/install.php');
return;
}
// make sure SugarConfig object is available