Disable empty feeds check after OPML import
This commit is contained in:
parent
466bb0a51a
commit
7f039fc427
@ -364,6 +364,8 @@ Router\get_action('refresh-all', function() {
|
|||||||
// Display all feeds
|
// Display all feeds
|
||||||
Router\get_action('feeds', function() {
|
Router\get_action('feeds', function() {
|
||||||
|
|
||||||
|
if (! Request\int_param('disable_empty_feeds_check')) {
|
||||||
|
|
||||||
$empty_feeds = Model\get_empty_feeds();
|
$empty_feeds = Model\get_empty_feeds();
|
||||||
|
|
||||||
if (! empty($empty_feeds)) {
|
if (! empty($empty_feeds)) {
|
||||||
@ -382,6 +384,7 @@ Router\get_action('feeds', function() {
|
|||||||
|
|
||||||
Session\flash_error($message);
|
Session\flash_error($message);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Response\html(Template\layout('feeds', array(
|
Response\html(Template\layout('feeds', array(
|
||||||
'feeds' => Model\get_feeds(),
|
'feeds' => Model\get_feeds(),
|
||||||
@ -469,7 +472,7 @@ 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');
|
Response\redirect('?action=feeds&disable_empty_feeds_check=1');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user