mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-09-12 21:50:57 -04:00
Format unread counter in title on page load (#9263)
For consistency with JS: https://github.com/FreshRSS/FreshRSS/pull/8577#issuecomment-4017150896
This commit is contained in:
1 parent
b182fb94e8
commit
5a842b25ee
1 file changed
+2
-2
@@ -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 . ' · ');
|
||||
|
||||
|
||||
Reference in new issue
Block a user