changes instalation checking
This commit is contained in:
@@ -98,6 +98,15 @@ class Application
|
||||
$cronManager->run();
|
||||
}
|
||||
|
||||
public function isInstalled()
|
||||
{
|
||||
$configFile = $this->getContainer()->get('config')->get('configPath');
|
||||
if (!file_exists($configFile)) {
|
||||
header("Location: install/");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
protected function routeHooks()
|
||||
{
|
||||
$container = $this->getContainer();
|
||||
|
||||
@@ -4,11 +4,7 @@ include "bootstrap.php";
|
||||
|
||||
$app = new \Espo\Core\Application();
|
||||
|
||||
$configFile = $app->getContainer()->get('config')->get('configPath');
|
||||
if (!file_exists($configFile)) {
|
||||
header("Location: install/");
|
||||
exit;
|
||||
}
|
||||
$app->isInstalled();
|
||||
|
||||
if (empty($_GET['entryPoint'])) {
|
||||
include "main.html";
|
||||
|
||||
Reference in New Issue
Block a user