#213657 by dopry and moshe weitzman: typo in rss feed build mode and better link handling
parent
de791184f3
commit
0221e61258
|
@ -1644,8 +1644,8 @@ function node_feed($nids = FALSE, $channel = array()) {
|
||||||
foreach ($nids as $nid) {
|
foreach ($nids as $nid) {
|
||||||
// Load the specified node:
|
// Load the specified node:
|
||||||
$item = node_load($nid);
|
$item = node_load($nid);
|
||||||
$node->build_mode = NODE_BUILD_RSS;
|
$item->build_mode = NODE_BUILD_RSS;
|
||||||
$link = url("node/$nid", array('absolute' => TRUE));
|
$item->link = url("node/$nid", array('absolute' => TRUE));
|
||||||
|
|
||||||
if ($item_length != 'title') {
|
if ($item_length != 'title') {
|
||||||
$teaser = ($item_length == 'teaser') ? TRUE : FALSE;
|
$teaser = ($item_length == 'teaser') ? TRUE : FALSE;
|
||||||
|
@ -1687,7 +1687,7 @@ function node_feed($nids = FALSE, $channel = array()) {
|
||||||
break;
|
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(
|
$channel_defaults = array(
|
||||||
|
|
Loading…
Reference in New Issue