X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FConsole%2FConfig.php;h=db436b8394e1ca2a533ab651997dab06a64d8706;hb=9fbaaa1481a609563e00a40db64bdce5e02c5524;hp=c37dd26b15ddb3cbbf81c5d80e07c1fae16b5f54;hpb=2fa6cc000013089d59d9cc221b544ed1a7a4cd37;p=friendica.git diff --git a/src/Core/Console/Config.php b/src/Core/Console/Config.php index c37dd26b15..db436b8394 100644 --- a/src/Core/Console/Config.php +++ b/src/Core/Console/Config.php @@ -1,19 +1,11 @@ + * @author Tobias Diekershoff + * @author Hypolite Petovan */ class Config extends \Asika\SimpleConsole\Console { @@ -79,7 +71,7 @@ HELP; protected function doExecute() { - $a = get_app(); + $a = \Friendica\BaseObject::getApp(); if ($this->getOption('v')) { $this->out('Executable: ' . $this->executable); @@ -92,7 +84,7 @@ HELP; throw new CommandArgsException('Too many arguments'); } - if (!($a->mode & \Friendica\App::MODE_DBCONFIGAVAILABLE)) { + if (!($a->mode & App::MODE_DBCONFIGAVAILABLE)) { $this->out('Database isn\'t ready or populated yet, showing file config only'); } @@ -102,7 +94,7 @@ HELP; $value = $this->getArgument(2); if (is_array(Core\Config::get($cat, $key))) { - throw new \RuntimeException("$cat.$key is an array and can't be set using this command."); + throw new RuntimeException("$cat.$key is an array and can't be set using this command."); } $result = Core\Config::set($cat, $key, $value); @@ -151,7 +143,7 @@ HELP; if (count($this->args) == 0) { Core\Config::load(); - if (Core\Config::get('system', 'config_adapter') == 'jit' && $a->mode & \Friendica\App::MODE_DBCONFIGAVAILABLE) { + if (Core\Config::get('system', 'config_adapter') == 'jit' && $a->mode & App::MODE_DBCONFIGAVAILABLE) { $this->out('Warning: The JIT (Just In Time) Config adapter doesn\'t support loading the entire configuration, showing file config only'); }