diff options
| author | 2022-02-05 10:57:36 +0100 | |
|---|---|---|
| committer | 2022-02-05 10:57:36 +0100 | |
| commit | be9c06fd5c1bfed8e0147c938b96e4876df98133 (patch) | |
| tree | 3113a9d106ee19f3d5a43dce6620a1b03d72341e /app/Controllers/subscriptionController.php | |
| parent | dc27baa7d67f4bc601ced80229844a88a7ca23d4 (diff) | |
Improved: Idle feeds list in a new layout (#4192)
* that should work fine
* fixed phpcs
* fixed phpcs
Diffstat (limited to 'app/Controllers/subscriptionController.php')
| -rw-r--r-- | app/Controllers/subscriptionController.php | 7 |
1 files changed, 6 insertions, 1 deletions
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(); |
