From 5e0e079afa3a5bb269e9a23d04d92ff10ea6b5ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Wed, 10 Dec 2014 21:26:07 -0500 Subject: [PATCH] Add refresh link to the feed page items --- controllers/feed.php | 7 +++++-- templates/feed_items.php | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/controllers/feed.php b/controllers/feed.php index 9a6230d..a878dcc 100644 --- a/controllers/feed.php +++ b/controllers/feed.php @@ -83,8 +83,11 @@ Router\get_action('remove-feed', function() { // Refresh one feed and redirect to unread items Router\get_action('refresh-feed', function() { - Model\Feed\refresh(Request\int_param('feed_id')); - Response\redirect('?action=unread'); + $feed_id = Request\int_param('feed_id'); + $redirect = Request\param('redirect', 'unread'); + + Model\Feed\refresh($feed_id); + Response\redirect('?action='.$redirect.'&feed_id='.$feed_id); }); // Ajax call to refresh one feed diff --git a/templates/feed_items.php b/templates/feed_items.php index 7dcb1ec..5858c37 100644 --- a/templates/feed_items.php +++ b/templates/feed_items.php @@ -7,6 +7,9 @@