Avoid empty basepath when loading database structure
This commit is contained in:
parent
c5b7af5e81
commit
4f5d2e7d36
|
@ -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 New Issue
Block a user