Avoid empty basepath when loading database structure
This commit is contained in:
parent
c5b7af5e81
commit
4f5d2e7d36
1 changed files with 3 additions and 0 deletions
|
@ -192,6 +192,9 @@ class DBStructure
|
||||||
public static function definition($basePath, $with_addons_structure = true)
|
public static function definition($basePath, $with_addons_structure = true)
|
||||||
{
|
{
|
||||||
if (!self::$definition) {
|
if (!self::$definition) {
|
||||||
|
if (empty($basePath)) {
|
||||||
|
$basePath = DI::app()->getBasePath();
|
||||||
|
}
|
||||||
|
|
||||||
$filename = $basePath . '/static/dbstructure.config.php';
|
$filename = $basePath . '/static/dbstructure.config.php';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue