diff --git a/controllers/feed.php b/controllers/feed.php index 315ffa7..c39e8cc 100644 --- a/controllers/feed.php +++ b/controllers/feed.php @@ -193,6 +193,8 @@ Router\action('subscribe', function() { $error_message = t('Unable to detect the feed format.'); } + Model\Config\write_debug(); + if (isset($feed_id) && $feed_id !== false) { Session\flash(t('Subscription added successfully.')); Response\redirect('?action=feed-items&feed_id='.$feed_id); diff --git a/models/feed.php b/models/feed.php index 4db8e4b..d5308b7 100644 --- a/models/feed.php +++ b/models/feed.php @@ -198,8 +198,6 @@ function create($url, $enable_grabber = false, $force_rtl = false, $cloak_referr fetch_favicon($feed_id, $feed->getSiteUrl(), $feed->getIcon()); } - Config\write_debug(); - return $feed_id; }