Avoid empty basepath when loading database structure

This commit is contained in:
Michael 2021-04-19 19:42:57 +00:00
parent c5b7af5e81
commit 4f5d2e7d36
1 changed files with 3 additions and 0 deletions

View File

@ -192,6 +192,9 @@ class DBStructure
public static function definition($basePath, $with_addons_structure = true)
{
if (!self::$definition) {
if (empty($basePath)) {
$basePath = DI::app()->getBasePath();
}
$filename = $basePath . '/static/dbstructure.config.php';