- Patch #23750 by jerakeen: use the creation date rather than the update date in RSS feeds.
parent
9e45d24af3
commit
ceb013278e
|
@ -1148,7 +1148,7 @@ function node_feed($nodes = 0, $channel = array()) {
|
|||
|
||||
// Allow modules to add additional item fields
|
||||
$extra = node_invoke_nodeapi($item, 'rss item');
|
||||
$extra = array_merge($extra, array(array('key' => 'pubDate', 'value' => date('r', $item->changed))));
|
||||
$extra = array_merge($extra, array(array('key' => 'pubDate', 'value' => date('r', $item->created))));
|
||||
$items .= format_rss_item($item->title, $link, $item->teaser, $extra);
|
||||
}
|
||||
|
||||
|
|
|
@ -1148,7 +1148,7 @@ function node_feed($nodes = 0, $channel = array()) {
|
|||
|
||||
// Allow modules to add additional item fields
|
||||
$extra = node_invoke_nodeapi($item, 'rss item');
|
||||
$extra = array_merge($extra, array(array('key' => 'pubDate', 'value' => date('r', $item->changed))));
|
||||
$extra = array_merge($extra, array(array('key' => 'pubDate', 'value' => date('r', $item->created))));
|
||||
$items .= format_rss_item($item->title, $link, $item->teaser, $extra);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue