diff options
author | Kevin Locke <kevin@kevinlocke.name> | 2011-01-28 21:11:55 -0700 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2011-02-21 20:22:48 +0100 |
commit | df93856ac45690fa1c84bc383d7a70a1225be8cc (patch) | |
tree | 484aec227d45097f41457df4bac7b8f706573f79 /phpBB/feed.php | |
parent | 24520f26ad5aaf812cfffbedc4ccafd5d47e14f7 (diff) | |
download | forums-df93856ac45690fa1c84bc383d7a70a1225be8cc.tar forums-df93856ac45690fa1c84bc383d7a70a1225be8cc.tar.gz forums-df93856ac45690fa1c84bc383d7a70a1225be8cc.tar.bz2 forums-df93856ac45690fa1c84bc383d7a70a1225be8cc.tar.xz forums-df93856ac45690fa1c84bc383d7a70a1225be8cc.zip |
[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
Diffstat (limited to 'phpBB/feed.php')
-rw-r--r-- | phpBB/feed.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/feed.php b/phpBB/feed.php index 36655d694f..a95b3abf9a 100644 --- a/phpBB/feed.php +++ b/phpBB/feed.php @@ -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"; |