mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +02:00
[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:
committed by
Andreas Fischer
parent
24520f26ad
commit
df93856ac4
@@ -203,6 +203,10 @@ foreach ($item_vars as $row)
|
||||
{
|
||||
echo '<updated>' . $row['updated'] . '</updated>' . "\n";
|
||||
}
|
||||
else if (!empty($row['published']))
|
||||
{
|
||||
echo '<updated>' . $row['published'] . '</updated>' . "\n";
|
||||
}
|
||||
|
||||
echo '<id>' . $row['link'] . '</id>' . "\n";
|
||||
echo '<link href="' . $row['link'] . '"/>' . "\n";
|
||||
|
Reference in New Issue
Block a user