Skip to content
Snippets Groups Projects
Commit 6e882d89 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #293532 by mustafau: when a redirected feed is not parseable...

- Patch #293532 by mustafau: when a redirected feed is not parseable Aggregator saves a watchdog entry saying that the feed was updated, however the feed remains unchanged in the database.
parent 021be926
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -598,7 +598,6 @@ function aggregator_refresh($feed) {
break;
case 301:
$feed['url'] = $result->redirect_url;
watchdog('aggregator', 'Updated URL for feed %title to %url.', array('%title' => $feed['title'], '%url' => $feed['url']));
// Do not break here.
case 200:
case 302:
......@@ -643,6 +642,10 @@ function aggregator_refresh($feed) {
// Clear the cache.
cache_clear_all();
if (isset($result->redirect_url)) {
watchdog('aggregator', 'Updated URL for feed %title to %url.', array('%title' => $feed['title'], '%url' => $feed['url']));
}
watchdog('aggregator', 'There is new syndicated content from %site.', array('%site' => $feed['title']));
drupal_set_message(t('There is new syndicated content from %site.', array('%site' => $feed['title'])));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment