Change redirect on feed importation
This commit is contained in:
parent
4fe64668a5
commit
f1479befd3
@ -336,13 +336,13 @@ Router\post_action('import', function() {
|
|||||||
if (Model\import_feeds(Request\file_content('file'))) {
|
if (Model\import_feeds(Request\file_content('file'))) {
|
||||||
|
|
||||||
Session\flash(t('Your feeds have been imported.'));
|
Session\flash(t('Your feeds have been imported.'));
|
||||||
|
Response\redirect('?action=feeds');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
Session\flash_error(t('Unable to import your OPML file.'));
|
Session\flash_error(t('Unable to import your OPML file.'));
|
||||||
|
Response\redirect('?action=import');
|
||||||
}
|
}
|
||||||
|
|
||||||
Response\redirect('?action=import');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user