]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Console/Config.php
1) Refactor App->config[] into Core\Config
[friendica.git] / src / Core / Console / Config.php
index ce367fffbf748785c4f81dbc1c46ef341d4bdfc5..8a0e0f88cf4930511a49c6f180a218a024930a2c 100644 (file)
@@ -124,9 +124,10 @@ HELP;
                        $cat = $this->getArgument(0);
                        Core\Config::load($cat);
 
-                       if (!is_null($a->config[$cat])) {
+                       if (Core\Config::getConfigValue($cat) !== null) {
                                $this->out("[{$cat}]");
-                               foreach ($a->config[$cat] as $key => $value) {
+                               $catVal = Core\Config::getConfigValue($cat);
+                               foreach ($catVal as $key => $value) {
                                        if (is_array($value)) {
                                                foreach ($value as $k => $v) {
                                                        $this->out("{$key}[{$k}] => " . $v);
@@ -147,7 +148,8 @@ HELP;
                                $this->out('Warning: The JIT (Just In Time) Config adapter doesn\'t support loading the entire configuration, showing file config only');
                        }
 
-                       foreach ($a->config as $cat => $section) {
+                       $config = Core\Config::getAll();
+                       foreach ($config as $cat => $section) {
                                if (is_array($section)) {
                                        foreach ($section as $key => $value) {
                                                if (is_array($value)) {