summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-01-07 18:16:42 +0300
committerAndrew Dolgov <[email protected]>2021-01-07 18:16:42 +0300
commit33a5ecd2ce1063436951c8d5752b53134b793f27 (patch)
treed24ab573ad554e44473505c3513f4279bab4a348 /include
parent0868ff9d6495151a7cc25db541915943aefcd740 (diff)
feed editor: show purge interval correctly if FORCE_ARTICLE_PURGE is set
Diffstat (limited to 'include')
-rw-r--r--include/functions.php5
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';
}