[COMMAND] Fix 'bin/console doctrine:database:create' by only loading defaults if we have a connection
This commit is contained in:
parent
e3e9ece614
commit
213cfe5285
@ -132,7 +132,9 @@ class GNUsocial implements EventSubscriberInterface
|
||||
Mailer::setMailer($this->mailer);
|
||||
Router::setRouter($this->router, $this->url_generator);
|
||||
|
||||
if (isset($_ENV['HTTPS']) || isset($_ENV['HTTP_HOST'])) {
|
||||
DefaultSettings::setDefaults();
|
||||
}
|
||||
|
||||
Cache::setupCache();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user