- Patch #157709 by tangent: avoid namespace collisions.
parent
84a4eed40d
commit
0eb9eb2f14
|
@ -1917,7 +1917,7 @@ function node_feed($nids = array(), $channel = array()) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$item_length = variable_get('feed_item_length', 'teaser');
|
$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 = '';
|
$items = '';
|
||||||
foreach ($nids as $nid) {
|
foreach ($nids as $nid) {
|
||||||
|
@ -1979,7 +1979,7 @@ function node_feed($nids = array(), $channel = array()) {
|
||||||
$channel = array_merge($channel_defaults, $channel);
|
$channel = array_merge($channel_defaults, $channel);
|
||||||
|
|
||||||
$output = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
|
$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 .= format_rss_channel($channel['title'], $channel['link'], $channel['description'], $items, $channel['language']);
|
||||||
$output .= "</rss>\n";
|
$output .= "</rss>\n";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue