1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-09 16:09:15 +00:00

force ngettext() count argument type to string

This commit is contained in:
Andrew Dolgov
2017-01-22 10:18:43 +03:00
parent 0047f2578f
commit 967f0619c7
5 changed files with 8 additions and 8 deletions

View File

@@ -81,7 +81,7 @@
$class = ($feedctr % 2) ? "even" : "odd";
if ($line['articles_archived'] > 0) {
$archived = sprintf(_ngettext("%d archived article", "%d archived articles", $line['articles_archived']), $line['articles_archived']);
$archived = sprintf(_ngettext("%d archived article", "%d archived articles", (int) $line['articles_archived']), $line['articles_archived']);
$archived = "&nbsp;<span class='subscribers'>($archived)</span>";
} else {
$archived = '';