[TASK] Site config utility: Return content of value if present
This commit is contained in:
parent
fb13b84e45
commit
fe832637ed
@ -45,6 +45,12 @@ class SiteConfigUtility
|
||||
foreach ($pathParts as $key) {
|
||||
$current = &$current[$key];
|
||||
}
|
||||
if (is_array($current)
|
||||
&& array_key_exists('value', $current)
|
||||
&& count($current) === 1
|
||||
) {
|
||||
$current = $current['value'];
|
||||
}
|
||||
return $current;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user