summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-07-16 07:40:27 +0000
committerDries Buytaert <dries@buytaert.net>2007-07-16 07:40:27 +0000
commit0eb9eb2f14ab9fb5508145846a06ad7309f09d58 (patch)
treeaf831d595271b9338986ffe09782c697b8059f6d /modules
parent84a4eed40d66c2de233a0ff0db5320bd5aed3bdd (diff)
downloadbrdo-0eb9eb2f14ab9fb5508145846a06ad7309f09d58.tar.gz
brdo-0eb9eb2f14ab9fb5508145846a06ad7309f09d58.tar.bz2
- Patch #157709 by tangent: avoid namespace collisions.
Diffstat (limited to 'modules')
-rw-r--r--modules/node/node.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index e90788a00..79e2773ab 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1917,7 +1917,7 @@ function node_feed($nids = array(), $channel = array()) {
}
$item_length = variable_get('feed_item_length', 'teaser');
- $namespaces = array('xmlns:dc="http://purl.org/dc/elements/1.1/"');
+ $namespaces = array('xmlns:dc' => 'http://purl.org/dc/elements/1.1/');
$items = '';
foreach ($nids as $nid) {
@@ -1979,7 +1979,7 @@ function node_feed($nids = array(), $channel = array()) {
$channel = array_merge($channel_defaults, $channel);
$output = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
- $output .= "<rss version=\"". $channel["version"] ."\" xml:base=\"". $base_url ."\" ". implode(' ', $namespaces) .">\n";
+ $output .= "<rss version=\"". $channel["version"] ."\" xml:base=\"". $base_url ."\" ". drupal_attributes($namespaces) .">\n";
$output .= format_rss_channel($channel['title'], $channel['link'], $channel['description'], $items, $channel['language']);
$output .= "</rss>\n";