From be9c06fd5c1bfed8e0147c938b96e4876df98133 Mon Sep 17 00:00:00 2001 From: maTh Date: Sat, 5 Feb 2022 10:57:36 +0100 Subject: Improved: Idle feeds list in a new layout (#4192) * that should work fine * fixed phpcs * fixed phpcs --- app/Controllers/subscriptionController.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'app/Controllers/subscriptionController.php') diff --git a/app/Controllers/subscriptionController.php b/app/Controllers/subscriptionController.php index eb0d86c3b..7d2c58714 100644 --- a/app/Controllers/subscriptionController.php +++ b/app/Controllers/subscriptionController.php @@ -207,7 +207,12 @@ class FreshRSS_subscription_Controller extends FreshRSS_ActionController { invalidateHttpCache(); - $url_redirect = array('c' => 'subscription', 'params' => array('id' => $id)); + $from = Minz_Request::param('from'); + if ($from === false) { + $url_redirect = array('c' => 'subscription', 'params' => array('id' => $id)); + } else { + $url_redirect = array('c' => 'stats', 'a' => 'idle', 'params' => array('id' => $id, 'from' => 'stats')); + } if ($feedDAO->updateFeed($id, $values) !== false) { $feed->_category($cat); $feed->faviconPrepare(); -- cgit v1.2.3