From 9f1d54be619295a5a13d0b9a4c1c9cd6b932e569 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Thu, 28 Jan 2021 23:18:24 +0800 Subject: [PATCH] setting: code part do not merge --- nexus/Install/Install.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nexus/Install/Install.php b/nexus/Install/Install.php index fcc6b464..7ed4f78e 100644 --- a/nexus/Install/Install.php +++ b/nexus/Install/Install.php @@ -193,9 +193,9 @@ class Install $prefixUpperCase = strtoupper($prefix); $oldGroupValues = $$prefixUpperCase ?? null; foreach ($group as $key => &$value) { - //merge original config to default setting - if (isset($oldGroupValues) && isset($oldGroupValues[$key])) { - $value = $oldGroupValues[$key];; + //merge original config to default setting, exclude code part + if ($prefix != 'code' && isset($oldGroupValues) && isset($oldGroupValues[$key])) { + $value = $oldGroupValues[$key]; } if (isset($requireDirs[$prefix]) && in_array($key, $requireDirs[$prefix])) { $dir = getFullDirectory($value);