fix getSchemeAndHttpHost()

This commit is contained in:
xiaomlove
2021-03-05 19:43:40 +08:00
parent bdefe4d30b
commit cb4e5e5eb5
5 changed files with 11 additions and 9 deletions

View File

@@ -11,8 +11,7 @@ if (!file_exists($rootpath . '.env')) {
$installScriptRelativePath = 'install/install.php';
$installScriptFile = $rootpath . "public/$installScriptRelativePath";
if (file_exists($installScriptFile)) {
header('Location: ' . getBaseUrl() . '/' . $installScriptRelativePath);
exit(0);
redirect($installScriptRelativePath);
}
}
ini_set('date.timezone', config('nexus.timezone'));