Upgrade to php 8
This commit is contained in:
@ -122,7 +122,11 @@ class Config
|
||||
$ini = strpos($value, '{') + 1;
|
||||
$end = strpos($value, '}', $ini);
|
||||
$rep = substr($value, $ini, $end - $ini);
|
||||
$value = str_replace('{' . $rep . '}', $this->get($rep), $value);
|
||||
$new = $this->get($rep);
|
||||
if ($new === null) {
|
||||
$new = '';
|
||||
}
|
||||
$value = str_replace('{' . $rep . '}', $new, $value);
|
||||
}
|
||||
}
|
||||
return $value;
|
||||
|
Reference in New Issue
Block a user