mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
fix for prev commit
This commit is contained in:
parent
65d28c72a4
commit
07db7540ff
1 changed files with 5 additions and 4 deletions
|
|
@ -233,14 +233,15 @@ function formatTime($format, $timestamp=0) : string
|
|||
return $s;
|
||||
}
|
||||
|
||||
function _e($s)
|
||||
function _e(string $s)
|
||||
{
|
||||
echo htmlspecialchars(Lang::instance()->get($s));
|
||||
echo __($s, true);
|
||||
}
|
||||
|
||||
function __($s)
|
||||
function __(string $s, bool $escape = false)
|
||||
{
|
||||
return Lang::instance()->get($s);
|
||||
$v = Lang::instance()->get($s);
|
||||
return $escape ? htmlspecialchars($v) : $v;
|
||||
}
|
||||
|
||||
function mttinfo($v)
|
||||
|
|
|
|||
Loading…
Reference in a new issue