mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
fix for 1a75eec
This commit is contained in:
parent
288db261a9
commit
2e29733c8c
1 changed files with 4 additions and 1 deletions
|
|
@ -315,9 +315,12 @@ function _e(string $s)
|
|||
echo __($s, true);
|
||||
}
|
||||
|
||||
function __(string $s, bool $escape = false)
|
||||
function __(string $s, bool $escape = false, ?string $arg = null)
|
||||
{
|
||||
$v = Lang::instance()->get($s);
|
||||
if (null !== $arg) {
|
||||
$v = sprintf($v, $arg);
|
||||
}
|
||||
return $escape ? htmlspecialchars($v) : $v;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue