BaseLang: fixed passing onlyPrefix to str_replace()'s count reference parameter

This commit is contained in:
Dylan K. Taylor 2020-06-22 20:34:23 +01:00
parent 763c8ebfe3
commit 2b6dcbc2e2

View File

@ -131,7 +131,7 @@ class BaseLang{
$baseText = $this->parseTranslation(($onlyPrefix === null or strpos($str, $onlyPrefix) === 0) ? $baseText : $str, $onlyPrefix);
foreach($params as $i => $p){
$baseText = str_replace("{%$i}", $this->parseTranslation((string) $p), $baseText, $onlyPrefix);
$baseText = str_replace("{%$i}", $this->parseTranslation((string) $p), $baseText);
}
return $baseText;