From f0027236541669bf81af1ed0955d7407437dad3d Mon Sep 17 00:00:00 2001 From: Mathias Kresin Date: Sat, 18 Apr 2015 14:01:18 +0000 Subject: [PATCH] move write_debug to the right position write_debug isn't executed if an exception is catched. --- controllers/feed.php | 2 ++ models/feed.php | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }