1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/10009] Make atom:update output unconditional and before atom:published

PHPBB3-10009
This commit is contained in:
Kevin Locke
2011-01-31 06:52:41 -07:00
committed by Andreas Fischer
parent df93856ac4
commit 361f6fc16c

View File

@@ -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";