mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 16:24:05 +00:00
BaseLang: fixed passing onlyPrefix to str_replace()'s count reference parameter
This commit is contained in:
parent
763c8ebfe3
commit
2b6dcbc2e2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user