mirror of
https://github.com/nadrad/h-m-m.git
synced 2024-06-08 03:52:12 +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)
|
||||
{
|
||||
$mm[$key] =
|
||||
$mm['arguments'][$key]
|
||||
?? $mm['env'][$key]
|
||||
?? $mm['config'][$key]
|
||||
?? $default;
|
||||
str_replace
|
||||
(
|
||||
'\033'
|
||||
,"\033"
|
||||
,
|
||||
$mm['arguments'][$key]
|
||||
?? $mm['env'][$key]
|
||||
?? $mm['config'][$key]
|
||||
?? $default
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue