From cbbef90752ff1bbf7cc311a92c2d7c5e3acdf18e Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Mon, 6 Sep 2021 17:33:46 +0100 Subject: [PATCH] [UTIL][CONFIG] Ensure `setConfig` uses a `locals` key --- src/Util/Common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util/Common.php b/src/Util/Common.php index c9703c6679..b9fb4f5342 100644 --- a/src/Util/Common.php +++ b/src/Util/Common.php @@ -92,7 +92,7 @@ abstract class Common { self::$config[$section][$setting] = $value; $diff = self::arrayDiffRecursive(self::$config, self::$defaults); - $yaml = (new Yaml\Dumper(indentation: 2))->dump(['parameters' => ['gnusocial' => $diff]], Yaml\Yaml::DUMP_OBJECT_AS_MAP); + $yaml = (new Yaml\Dumper(indentation: 2))->dump(['parameters' => ['locals' => ['gnusocial' => $diff]]], Yaml\Yaml::DUMP_OBJECT_AS_MAP); rename(INSTALLDIR . '/social.local.yaml', INSTALLDIR . '/social.local.yaml.back'); file_put_contents(INSTALLDIR . '/social.local.yaml', $yaml); }