fixes the escape code in config values

This commit is contained in:
nadrad 2022-11-25 14:03:22 +01:00
parent 828df2bc5d
commit 16c5185ba1

14
h-m-m
View file

@ -202,10 +202,16 @@ const insert_child = 1;
function config(&$mm, $key, $default) function config(&$mm, $key, $default)
{ {
$mm[$key] = $mm[$key] =
$mm['arguments'][$key] str_replace
?? $mm['env'][$key] (
?? $mm['config'][$key] '\033'
?? $default; ,"\033"
,
$mm['arguments'][$key]
?? $mm['env'][$key]
?? $mm['config'][$key]
?? $default
);
} }