Upgrade to php 8

This commit is contained in:
Aldarien
2023-02-10 15:12:30 +00:00
parent b6c0c90943
commit de6100a546
9 changed files with 25 additions and 14 deletions

View File

@ -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;