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