mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/10009] Make atom:update output unconditional and before atom:published
PHPBB3-10009
This commit is contained in:
parent
df93856ac4
commit
361f6fc16c
1 changed files with 2 additions and 9 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Reference in a new issue