diff options
| author | 2014-09-19 19:44:40 +0200 | |
|---|---|---|
| committer | 2014-09-19 19:44:40 +0200 | |
| commit | d284958d52f633738e8cc736f7f4a50e0c984ecf (patch) | |
| tree | 2580fd65e1250284095ef4ab07e492930df29322 /app/Controllers | |
| parent | 921dd88e646621a0118c97716cae6b34a0ed26b1 (diff) | |
Improve redirection when deleting an idle feed
Diffstat (limited to 'app/Controllers')
| -rwxr-xr-x | app/Controllers/feedController.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php index 3326b2059..65d4b3a37 100755 --- a/app/Controllers/feedController.php +++ b/app/Controllers/feedController.php @@ -412,10 +412,13 @@ class FreshRSS_feed_Controller extends Minz_ActionController { Minz_Session::_param ('notification', $notif); - if ($type == 'category') { - Minz_Request::forward (array ('c' => 'configure', 'a' => 'categorize'), true); + $redirect_url = Minz_Request::param('r', false, true); + if ($redirect_url) { + Minz_Request::forward($redirect_url); + } elseif ($type == 'category') { + Minz_Request::forward(array ('c' => 'configure', 'a' => 'categorize'), true); } else { - Minz_Request::forward (array ('c' => 'configure', 'a' => 'feed'), true); + Minz_Request::forward(array ('c' => 'configure', 'a' => 'feed'), true); } } } |
