diff --git a/src/Database/DBStructure.php b/src/Database/DBStructure.php index 0c1a46d4ed..82e405942f 100644 --- a/src/Database/DBStructure.php +++ b/src/Database/DBStructure.php @@ -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';