move write_debug to the right position

write_debug isn't executed if an exception is catched.
This commit is contained in:
Mathias Kresin 2015-04-18 14:01:18 +00:00
parent 67d97bb096
commit f002723654
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;
}