Fix __() function

This commit is contained in:
Visman 2021-11-26 21:16:20 +07:00
parent b254c54694
commit cfb8511f63

View file

@ -49,7 +49,7 @@ function __(/* string|arrray */ $arg): string
$args = \array_slice($arg, 1);
if (null === $tr) {
$tr = e($tr);
$tr = e(\reset($arg));
} elseif (\is_array($tr)) {
$tr = $lang->getForm($tr, \reset($args));
$args = \array_slice($args, 1);