Avoid empty basepath when loading database structure
This commit is contained in:
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user