diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/functions.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php index f1cce0bbf..41d6e5853 100644 --- a/include/functions.php +++ b/include/functions.php @@ -401,6 +401,11 @@ return vsprintf(__(array_shift($args)), $args); } + function T_nsprintf() { + $args = func_get_args(); + return vsprintf(_ngettext(array_shift($args), array_shift($args), array_shift($args)), $args); + } + function is_server_https() { return (!empty($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] != 'off')) || $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'; } |