diff --git a/plugins/views_plugin_row_rss_fields.inc b/plugins/views_plugin_row_rss_fields.inc index 7e43ce6..87f54ae 100644 --- a/plugins/views_plugin_row_rss_fields.inc +++ b/plugins/views_plugin_row_rss_fields.inc @@ -105,6 +105,15 @@ class views_plugin_row_rss_fields extends views_plugin_row { if (!isset($row_index)) { $row_index = 0; } + if (function_exists('rdf_get_namespaces')) { + // Merge RDF namespaces in the XML namespaces in case they are used + // further in the RSS content. + $xml_rdf_namespaces = array(); + foreach (rdf_get_namespaces() as $prefix => $uri) { + $xml_rdf_namespaces['xmlns:' . $prefix] = $uri; + } + $this->view->style_plugin->namespaces += $xml_rdf_namespaces; + } $item = new stdClass(); $item->title = $this->get_field($row_index, $this->options['title_field']);