summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-04-19 22:17:57 +0000
committerDries Buytaert <dries@buytaert.net>2008-04-19 22:17:57 +0000
commit3ad38dbbbd821c5041208672d34ee6dcdf65ee0b (patch)
treef33e37052d309cc497e6472b29a314b0f8290be1
parent9feab1f2eab981c70d7ccbc423bfed051b21f5df (diff)
downloadbrdo-3ad38dbbbd821c5041208672d34ee6dcdf65ee0b.tar.gz
brdo-3ad38dbbbd821c5041208672d34ee6dcdf65ee0b.tar.bz2
- Patch #232433 by mfb: make sure RSS feeds validate.
-rw-r--r--modules/node/node.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index f46f2d050..ba10ea171 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1671,7 +1671,7 @@ function node_feed($nids = FALSE, $channel = array()) {
// Allow modules to add additional item fields and/or modify $item
$extra = node_invoke_nodeapi($item, 'rss item');
- $extra = array_merge($extra, array(array('key' => 'pubDate', 'value' => format_date($item->created, 'custom', 'r')), array('key' => 'dc:creator', 'value' => $item->name), array('key' => 'guid', 'value' => $item->nid . ' at ' . $base_url, 'attributes' => array('isPermaLink' => 'false'))));
+ $extra = array_merge($extra, array(array('key' => 'pubDate', 'value' => gmdate('r', $item->created)), array('key' => 'dc:creator', 'value' => $item->name), array('key' => 'guid', 'value' => $item->nid . ' at ' . $base_url, 'attributes' => array('isPermaLink' => 'false'))));
foreach ($extra as $element) {
if (isset($element['namespace'])) {
$namespaces = array_merge($namespaces, $element['namespace']);