[ticket/10009] Send atom:updated whenever possible

For posts/topics which have not been edited/updated, use the creation
date to populate atom:updated, as suggested by bantu.  This should
increase compatibility with user agents which expect an atom:updated
element.

PHPBB3-10009
This commit is contained in:
Kevin Locke 2011-01-28 21:11:55 -07:00 committed by Andreas Fischer
parent 24520f26ad
commit df93856ac4

View file

@ -203,6 +203,10 @@ foreach ($item_vars as $row)
{ {
echo '<updated>' . $row['updated'] . '</updated>' . "\n"; echo '<updated>' . $row['updated'] . '</updated>' . "\n";
} }
else if (!empty($row['published']))
{
echo '<updated>' . $row['published'] . '</updated>' . "\n";
}
echo '<id>' . $row['link'] . '</id>' . "\n"; echo '<id>' . $row['link'] . '</id>' . "\n";
echo '<link href="' . $row['link'] . '"/>' . "\n"; echo '<link href="' . $row['link'] . '"/>' . "\n";