mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 12:28:52 +00: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:
parent
24520f26ad
commit
df93856ac4
1 changed files with 4 additions and 0 deletions
|
@ -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";
|
||||||
|
|
Loading…
Add table
Reference in a new issue