aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Context.php
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <aledeg@users.noreply.github.com> 2021-02-26 17:31:01 -0500
committerGravatar GitHub <noreply@github.com> 2021-02-26 23:31:01 +0100
commit449fee7a2cc9453da4aac03f833ccb28205d7d3a (patch)
treeb0ea6561ca18dd078d722a2eaa1c9d84af9366d2 /app/Models/Context.php
parenta127f7dae3767d519fc0c6d7cbb84e640bace7c2 (diff)
"Show all" option on labels (#3472)
It uses the favorite option to keep a similar experience through out the application and also to limit the number of options. See #3263
Diffstat (limited to 'app/Models/Context.php')
-rw-r--r--app/Models/Context.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Models/Context.php b/app/Models/Context.php
index 1ca99a26d..4f18165c0 100644
--- a/app/Models/Context.php
+++ b/app/Models/Context.php
@@ -292,9 +292,10 @@ class FreshRSS_Context {
self::$get_unread = $tag->nbUnread();
break;
case 'T':
+ $tagDAO = FreshRSS_Factory::createTagDao();
self::$current_get['tags'] = true;
self::$name = _t('index.menu.tags');
- self::$get_unread = 0;
+ self::$get_unread = $tagDAO->countNotRead();
break;
default:
throw new FreshRSS_Context_Exception('Invalid getter: ' . $get);