mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-02 08:09:19 +08:00
[Legacy] Redirect Legacy Install to Suite 8
This commit is contained in:
parent
10b33547e0
commit
2bfdae9f5e
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue