aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/feed.php
diff options
context:
space:
mode:
authorKevin Locke <kevin@kevinlocke.name>2011-01-31 06:52:41 -0700
committerAndreas Fischer <bantu@phpbb.com>2011-02-21 20:23:39 +0100
commit361f6fc16c98f8e083337481277e81c0cb060f38 (patch)
treea6c7d02337da751752759ab60a01369845a1f4bf /phpBB/feed.php
parentdf93856ac45690fa1c84bc383d7a70a1225be8cc (diff)
downloadforums-361f6fc16c98f8e083337481277e81c0cb060f38.tar
forums-361f6fc16c98f8e083337481277e81c0cb060f38.tar.gz
forums-361f6fc16c98f8e083337481277e81c0cb060f38.tar.bz2
forums-361f6fc16c98f8e083337481277e81c0cb060f38.tar.xz
forums-361f6fc16c98f8e083337481277e81c0cb060f38.zip
[ticket/10009] Make atom:update output unconditional and before atom:published
PHPBB3-10009
Diffstat (limited to 'phpBB/feed.php')
-rw-r--r--phpBB/feed.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/phpBB/feed.php b/phpBB/feed.php
index a95b3abf9a..a69a24d062 100644
--- a/phpBB/feed.php
+++ b/phpBB/feed.php
@@ -194,20 +194,13 @@ foreach ($item_vars as $row)
echo '<author><name><![CDATA[' . $row['author'] . ']]></name></author>' . "\n";
}
+ echo '<updated>' . ((!empty($row['updated'])) ? $row['updated'] : $row['published']) . '</updated>' . "\n";
+
if (!empty($row['published']))
{
echo '<published>' . $row['published'] . '</published>' . "\n";
}
- if (!empty($row['updated']))
- {
- 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";
echo '<title type="html"><![CDATA[' . $row['title'] . ']]></title>' . "\n\n";