mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-04 08:28:56 +08:00
Move install check to autoload runtime template
This commit is contained in:
parent
f0e2129bdf
commit
fb8be46256
2 changed files with 15 additions and 7 deletions
|
@ -4,11 +4,6 @@ use App\Kernel;
|
|||
|
||||
require_once dirname(__DIR__) . '/vendor/autoload_runtime.php';
|
||||
|
||||
if (!file_exists('legacy/config.php') && !file_exists('../.installed_checked') && !file_exists('../.curl_check_main_page')){
|
||||
header('Location: install.php');
|
||||
return;
|
||||
}
|
||||
|
||||
return function (array $context) {
|
||||
return new Kernel($context['APP_ENV'], (bool)$context['APP_DEBUG']);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue