Remove extraneous dba::connect calls
This commit is contained in:
@@ -64,12 +64,8 @@ HELP;
|
||||
throw new \Asika\SimpleConsole\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) {
|
||||
throw new \RuntimeException('Database isn\'t ready or populated yet');
|
||||
}
|
||||
|
||||
Core\Config::load();
|
||||
|
||||
Reference in New Issue
Block a user