aboutsummaryrefslogtreecommitdiff
path: root/app/layout/aside_feed.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/layout/aside_feed.phtml')
-rw-r--r--app/layout/aside_feed.phtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/layout/aside_feed.phtml b/app/layout/aside_feed.phtml
index 4c01b4694..52531b252 100644
--- a/app/layout/aside_feed.phtml
+++ b/app/layout/aside_feed.phtml
@@ -46,7 +46,7 @@
<?php
$t_active = FreshRSS_Context::isCurrentGet('T');
- $t_show = $t_active || FreshRSS_Context::$user_conf->display_categories;
+ $t_show = ($t_active && FreshRSS_Context::$user_conf->display_categories === 'active') || FreshRSS_Context::$user_conf->display_categories === 'all';
?>
<li class="tree-folder category tags<?= $t_active ? ' active' : '' ?>">
<div class="tree-folder-title">
@@ -75,7 +75,7 @@
$position = $cat->attributes('position');
if (!empty($feeds)) {
$c_active = FreshRSS_Context::isCurrentGet('c_' . $cat->id());
- $c_show = $c_active || FreshRSS_Context::$user_conf->display_categories;
+ $c_show = ($c_active && FreshRSS_Context::$user_conf->display_categories === 'active') || FreshRSS_Context::$user_conf->display_categories === 'all';
?>
<li class="tree-folder category<?= $c_active ? ' active' : '' ?>"<?= null === $position ? '' : "data-position='$position'" ?> data-unread="<?= $cat->nbNotRead() ?>">
<div class="tree-folder-title">