mirror of
https://github.com/nadrad/h-m-m.git
synced 2024-06-07 03:42:13 +02:00
fixes the escape code in config values
This commit is contained in:
parent
828df2bc5d
commit
16c5185ba1
14
h-m-m
14
h-m-m
|
@ -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
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue