diff options
author | Andrew Dolgov <[email protected]> | 2021-01-07 18:16:42 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-01-07 18:16:42 +0300 |
commit | 33a5ecd2ce1063436951c8d5752b53134b793f27 (patch) | |
tree | d24ab573ad554e44473505c3513f4279bab4a348 /include/functions.php | |
parent | 0868ff9d6495151a7cc25db541915943aefcd740 (diff) |
feed editor: show purge interval correctly if FORCE_ARTICLE_PURGE is set
Diffstat (limited to 'include/functions.php')
-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'; } |