summaryrefslogtreecommitdiff
path: root/modules/aggregator/aggregator.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-12-02 18:37:04 +0000
committerDries Buytaert <dries@buytaert.net>2004-12-02 18:37:04 +0000
commit55df38710f07a7183e275a7bdd3258be0e5eb8ab (patch)
treee5dd1bc25c0bcba929938166e48292c54cae9832 /modules/aggregator/aggregator.module
parentb70378be0095657c1bb560d2e0d4a4c8ead369cb (diff)
downloadbrdo-55df38710f07a7183e275a7bdd3258be0e5eb8ab.tar.gz
brdo-55df38710f07a7183e275a7bdd3258be0e5eb8ab.tar.bz2
- Patch #13786 by drumm: fixed handling of HTTP 301 response codes.
Diffstat (limited to 'modules/aggregator/aggregator.module')
-rw-r--r--modules/aggregator/aggregator.module4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module
index 83f8d6113..085f328ab 100644
--- a/modules/aggregator/aggregator.module
+++ b/modules/aggregator/aggregator.module
@@ -342,7 +342,9 @@ function aggregator_refresh($feed) {
break;
case 301:
$feed['url'] = $result->redirect_url;
- watchdog('special', t('Aggregator: updated URL for feed %title to %url.', array('%title' => '<em>'. $feed[title] .'</em>', '%url' => '<em>'. $feed[url] .'</em>')));
+ watchdog('special', t('Aggregator: updated URL for feed %title to %url.', array('%title' => '<em>'. $feed['title'] .'</em>', '%url' => '<em>'. $feed['url'] .'</em>')));
+ break;
+
case 200:
case 302:
case 307: