mirror of
https://github.com/friendica/friendica
synced 2024-11-19 17:03:41 +00:00
Merge pull request #10157 from annando/empty-basepath
Avoid an empty basepath
This commit is contained in:
commit
3b60064978
1 changed files with 3 additions and 0 deletions
|
@ -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';
|
||||
|
||||
|
|
Loading…
Reference in a new issue