- Patch #23750 by jerakeen: use the creation date rather than the update date in RSS feeds.

4.7.x
Dries Buytaert 2005-08-11 12:53:39 +00:00
parent 9e45d24af3
commit ceb013278e
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}