diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-12-15 15:57:55 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-12-15 15:57:55 +0000 |
commit | 264f7d5667e83cf07c38b91cfd170e57f845a5f2 (patch) | |
tree | f55b31f9bc80229242b8028777ce30a927530123 /modules/node.module | |
parent | 764f1177efe7bafe5ab47b21968d4b0921c3896c (diff) | |
download | brdo-264f7d5667e83cf07c38b91cfd170e57f845a5f2.tar.gz brdo-264f7d5667e83cf07c38b91cfd170e57f845a5f2.tar.bz2 |
- Patch #41211 by Neil: de-dupe XML namespaces in RSS automatically.
Diffstat (limited to 'modules/node.module')
-rw-r--r-- | modules/node.module | 2 |
1 files changed, 1 insertions, 1 deletions
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); |