1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 08:35:55 +00:00

feed editor: show purge interval correctly if FORCE_ARTICLE_PURGE is set

This commit is contained in:
Andrew Dolgov
2021-01-07 18:16:42 +03:00
parent 0868ff9d64
commit 33a5ecd2ce
2 changed files with 15 additions and 4 deletions

View File

@@ -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';
}