]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Console/Config.php
Rework App modes
[friendica.git] / src / Core / Console / Config.php
index a6083ddb9fd40e87b62c215cc9069af9277830b5..f619afade06423a4f498e3bc730bddb97be27498 100644 (file)
@@ -92,7 +92,7 @@ HELP;
                        throw new CommandArgsException('Too many arguments');
                }
 
-               if ($a->mode === \Friendica\App::MODE_INSTALL) {
+               if (!($a->mode & \Friendica\App::MODE_DBCONFIGAVAILABLE)) {
                        $this->out('Database isn\'t ready or populated yet, showing file config only');
                }
 
@@ -126,7 +126,7 @@ HELP;
                if (count($this->args) == 0) {
                        Core\Config::load();
 
-                       if (Core\Config::get('system', 'config_adapter') != 'preload' && $a->mode !== \Friendica\App::MODE_INSTALL) {
+                       if (Core\Config::get('system', 'config_adapter') != 'preload' && $a->mode & \Friendica\App::MODE_DBCONFIGAVAILABLE) {
                                $this->out('Warning: The JIT (Just In Time) Config adapter doesn\'t support loading the entire configuration, showing file config only');
                        }