X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FCore%2FConsole%2FConfig.php;h=ce367fffbf748785c4f81dbc1c46ef341d4bdfc5;hb=fabc90e9dd5f1c4280a9bfa6c6930a3fc985f87a;hp=da2d20fd13fda2ec63fa9b80aeea5c89f44cbf5d;hpb=1fa37586caa351b3bdb44920649ba0fa90c36bd0;p=friendica.git diff --git a/src/Core/Console/Config.php b/src/Core/Console/Config.php index da2d20fd13..ce367fffbf 100644 --- a/src/Core/Console/Config.php +++ b/src/Core/Console/Config.php @@ -1,11 +1,5 @@ getOption('v')) { $this->out('Executable: ' . $this->executable); @@ -93,7 +84,7 @@ HELP; throw new CommandArgsException('Too many arguments'); } - if (!($a->mode & App::MODE_DBCONFIGAVAILABLE)) { + if (!$a->getMode()->has(App\Mode::DBCONFIGAVAILABLE)) { $this->out('Database isn\'t ready or populated yet, showing file config only'); } @@ -152,7 +143,7 @@ HELP; if (count($this->args) == 0) { Core\Config::load(); - if (Core\Config::get('system', 'config_adapter') == 'jit' && $a->mode & App::MODE_DBCONFIGAVAILABLE) { + if (Core\Config::get('system', 'config_adapter') == 'jit' && $a->getMode()->has(App\Mode::DBCONFIGAVAILABLE)) { $this->out('Warning: The JIT (Just In Time) Config adapter doesn\'t support loading the entire configuration, showing file config only'); }