From f1479befd37eac5ace82eba42d499113ae97017a Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 1 Jun 2013 14:56:20 -0400 Subject: [PATCH] Change redirect on feed importation --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 94e16e8..850c8e5 100644 --- a/index.php +++ b/index.php @@ -336,13 +336,13 @@ Router\post_action('import', function() { if (Model\import_feeds(Request\file_content('file'))) { Session\flash(t('Your feeds have been imported.')); + Response\redirect('?action=feeds'); } else { Session\flash_error(t('Unable to import your OPML file.')); + Response\redirect('?action=import'); } - - Response\redirect('?action=import'); });