From 8808fb4545d467f62fc82886d9f86bc63c8cf962 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sat, 29 Jan 2022 14:19:16 +0100 Subject: Fix keep state after favourites tags (#4178) * Fix keep state after favourites tags #fix https://github.com/FreshRSS/FreshRSS/issues/4124 regression * Optimisation --- app/layout/aside_feed.phtml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'app/layout/aside_feed.phtml') diff --git a/app/layout/aside_feed.phtml b/app/layout/aside_feed.phtml index 5e6aafe07..0b1680ffb 100644 --- a/app/layout/aside_feed.phtml +++ b/app/layout/aside_feed.phtml @@ -8,11 +8,9 @@ $class = ' state_unread'; } - $state_filter_fav = FreshRSS_Context::$user_conf->show_fav_unread ? '&state=3' : ''; - - $state_filter_cat = Minz_Request::param('state', ''); - if ($state_filter_cat) { - $state_filter_cat = '&state=' . $state_filter_cat; + $state_filter_manual = Minz_Request::param('state', ''); + if ($state_filter_manual != '') { + $state_filter_manual = '&state=' . $state_filter_manual; } ?>