]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Console/Config.php
Remove extraneous dba::connect calls
[friendica.git] / src / Core / Console / Config.php
index 306e1c275eb18af5ab0b667b9da77aabd4a27c22..4f7d090d5c790362ed5bc1c043cc3f41a9b71082 100644 (file)
@@ -92,12 +92,8 @@ HELP;
                        throw new CommandArgsException('Too many arguments');
                }
 
-               require_once '.htconfig.php';
-               $result = dba::connect($db_host, $db_user, $db_pass, $db_data);
-               unset($db_host, $db_user, $db_pass, $db_data);
-
-               if (!$result) {
-                       throw new \RuntimeException('Unable to connect to database');
+               if ($a->mode === \Friendica\App::MODE_INSTALL) {
+                       $this->out('Database isn\'t ready or populated yet, showing file config only');
                }
 
                if (count($this->args) == 3) {