* [MOD] Improved plugins management

* [MOD] Code refactoring

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
This commit is contained in:
nuxsmin
2018-10-15 02:56:00 +02:00
parent 6b6d4a0f23
commit 7f2dd35059
47 changed files with 1245 additions and 681 deletions

View File

@@ -183,7 +183,10 @@ final class Init extends ModuleBase
}
// Checks if the database is set up
if (!DatabaseUtil::checkDatabaseExist($this->container->get(Database::class)->getDbHandler(), $this->configData->getDbName())) {
if (!DatabaseUtil::checkDatabaseExist(
$this->container->get(Database::class)->getDbHandler(),
$this->configData->getDbName())
) {
$this->router->response()
->redirect('index.php?r=error/databaseError')
->send();