summaryrefslogtreecommitdiffstats
path: root/custom/views
diff options
context:
space:
mode:
authorPascal Chevrel <pascal@chevrel.org>2012-05-05 20:07:55 +0200
committerPascal Chevrel <pascal@chevrel.org>2012-05-05 20:07:55 +0200
commita34d1438e2d21abb13e41a731aff3edf5078d13d (patch)
tree227f3bbb23f50429e5bafe5362976899f1ad9556 /custom/views
parent761d59cf010bb554d6a8057731de99b03f44715e (diff)
downloadplanet-a34d1438e2d21abb13e41a731aff3edf5078d13d.tar
planet-a34d1438e2d21abb13e41a731aff3edf5078d13d.tar.gz
planet-a34d1438e2d21abb13e41a731aff3edf5078d13d.tar.bz2
planet-a34d1438e2d21abb13e41a731aff3edf5078d13d.tar.xz
planet-a34d1438e2d21abb13e41a731aff3edf5078d13d.zip
add an <updated> element to atom feed <entry> using the same value as <published>, this is required for validation and for compatibility with feed agregators that may check for the <updated> field
Diffstat (limited to 'custom/views')
-rw-r--r--custom/views/atom10/index.tpl.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/custom/views/atom10/index.tpl.php b/custom/views/atom10/index.tpl.php
index b2ecbaf..23f3163 100644
--- a/custom/views/atom10/index.tpl.php
+++ b/custom/views/atom10/index.tpl.php
@@ -20,6 +20,7 @@ echo '<?xml version="1.0" encoding="UTF-8" ?>';
<id><?php echo htmlspecialchars($item->get_permalink());?></id>
<link rel="alternate" href="<?php echo htmlspecialchars($item->get_permalink());?>"/>
<published><?php echo $item->get_date('Y-m-d\\TH:i:s+00:00'); ?></published>
+ <updated><?php echo $item->get_date('Y-m-d\\TH:i:s+00:00'); ?></updated>
<author><name><?php echo ($item->get_author()? $item->get_author()->get_name() : 'anonymous'); ?></name></author>
<content type="html"><![CDATA[<?php echo $item->get_content();?>]]></content>