diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-28 15:51:29 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-28 15:51:29 +0000 |
commit | 0221e61258f58dc98449c69b81c879f3e91ed777 (patch) | |
tree | e2a1cb78444a25318177ee022a19b7631989900e /modules/node/node.module | |
parent | de791184f3d059617a72771e4143c323e7f388ee (diff) | |
download | brdo-0221e61258f58dc98449c69b81c879f3e91ed777.tar.gz brdo-0221e61258f58dc98449c69b81c879f3e91ed777.tar.bz2 |
#213657 by dopry and moshe weitzman: typo in rss feed build mode and better link handling
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 2cbd0bdef..c748965ff 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1644,8 +1644,8 @@ function node_feed($nids = FALSE, $channel = array()) { foreach ($nids as $nid) { // Load the specified node: $item = node_load($nid); - $node->build_mode = NODE_BUILD_RSS; - $link = url("node/$nid", array('absolute' => TRUE)); + $item->build_mode = NODE_BUILD_RSS; + $item->link = url("node/$nid", array('absolute' => TRUE)); if ($item_length != 'title') { $teaser = ($item_length == 'teaser') ? TRUE : FALSE; @@ -1687,7 +1687,7 @@ function node_feed($nids = FALSE, $channel = array()) { break; } - $items .= format_rss_item($item->title, $link, $item_text, $extra); + $items .= format_rss_item($item->title, $item->link, $item_text, $extra); } $channel_defaults = array( |