]> git.mxchange.org Git - friendica.git/blobdiff - src/Database/DBStructure.php
Coding standards
[friendica.git] / src / Database / DBStructure.php
index 0c1a46d4ed2c4917b5c64b7213b0475311748ea4..82e405942f942c9829158c776b5d162ac17d204d 100644 (file)
@@ -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';