From 264f7d5667e83cf07c38b91cfd170e57f845a5f2 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 15 Dec 2005 15:57:55 +0000 Subject: - Patch #41211 by Neil: de-dupe XML namespaces in RSS automatically. --- modules/node.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/node.module') diff --git a/modules/node.module b/modules/node.module index 0a7d3b75f..4da1629f0 100644 --- a/modules/node.module +++ b/modules/node.module @@ -1446,7 +1446,7 @@ function node_feed($nodes = 0, $channel = array()) { $extra = array_merge($extra, array(array('key' => 'pubDate', 'value' => date('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 ($element['namespace']) { - $namespaces = array_merge($namespaces, array($element['namespace'])); + $namespaces = array_merge($namespaces, $element['namespace']); } } $items .= format_rss_item($item->title, $link, $item_text, $extra); -- cgit v1.2.3