Fix gitlab-domains/github-domains to avoid overwriting the default when another domain is configured, refs #9373
parent
4797d4afc8
commit
04aad524ec
|
@ -138,6 +138,8 @@ class Config
|
||||||
foreach ($config['config'] as $key => $val) {
|
foreach ($config['config'] as $key => $val) {
|
||||||
if (in_array($key, array('bitbucket-oauth', 'github-oauth', 'gitlab-oauth', 'gitlab-token', 'http-basic', 'bearer')) && isset($this->config[$key])) {
|
if (in_array($key, array('bitbucket-oauth', 'github-oauth', 'gitlab-oauth', 'gitlab-token', 'http-basic', 'bearer')) && isset($this->config[$key])) {
|
||||||
$this->config[$key] = array_merge($this->config[$key], $val);
|
$this->config[$key] = array_merge($this->config[$key], $val);
|
||||||
|
} elseif (in_array($key, array('gitlab-domains', 'github-domains')) && isset($this->config[$key])) {
|
||||||
|
$this->config[$key] = array_unique(array_merge($this->config[$key], $val));
|
||||||
} elseif ('preferred-install' === $key && isset($this->config[$key])) {
|
} elseif ('preferred-install' === $key && isset($this->config[$key])) {
|
||||||
if (is_array($val) || is_array($this->config[$key])) {
|
if (is_array($val) || is_array($this->config[$key])) {
|
||||||
if (is_string($val)) {
|
if (is_string($val)) {
|
||||||
|
|
Loading…
Reference in New Issue