From 5a842b25ee883ff0719bf030d9560c555d7f63c2 Mon Sep 17 00:00:00 2001 From: Inverle Date: Sun, 6 Sep 2026 21:36:12 +0200 Subject: [PATCH] Format unread counter in title on page load (#9263) For consistency with JS: https://github.com/FreshRSS/FreshRSS/pull/8577#issuecomment-4017150896 --- app/Controllers/indexController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Controllers/indexController.php b/app/Controllers/indexController.php index 44a3d057a..de6830813 100644 --- a/app/Controllers/indexController.php +++ b/app/Controllers/indexController.php @@ -149,7 +149,7 @@ class FreshRSS_index_Controller extends FreshRSS_ActionController { $title = '“' . htmlspecialchars($search, ENT_COMPAT, 'UTF-8') . '”'; } if (FreshRSS_Context::userConf()->show_title_unread && FreshRSS_Context::$get_unread > 0) { - $title = '(' . FreshRSS_Context::$get_unread . ') ' . $title; + $title = '(' . format_number(FreshRSS_Context::$get_unread) . ') ' . $title; } if (strlen($title) > 0) { FreshRSS_View::prependTitle($title . ' · '); @@ -239,7 +239,7 @@ class FreshRSS_index_Controller extends FreshRSS_ActionController { $this->view->rss_title = FreshRSS_Context::$name . ' | ' . FreshRSS_View::title(); $title = _t('index.feed.title_global'); if (FreshRSS_Context::userConf()->show_title_unread && FreshRSS_Context::$get_unread > 0) { - $title = '(' . FreshRSS_Context::$get_unread . ') ' . $title; + $title = '(' . format_number(FreshRSS_Context::$get_unread) . ') ' . $title; } FreshRSS_View::prependTitle($title . ' · ');