https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5b7af5
)
Avoid empty basepath when loading database structure
author
Michael
<heluecht@pirati.ca>
Mon, 19 Apr 2021 19:42:57 +0000
(19:42 +0000)
committer
Michael
<heluecht@pirati.ca>
Mon, 19 Apr 2021 19:42:57 +0000
(19:42 +0000)
src/Database/DBStructure.php
patch
|
blob
|
history
diff --git
a/src/Database/DBStructure.php
b/src/Database/DBStructure.php
index
0c1a46d
..
82e4059
100644
(file)
--- 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';