nieuws/feed: atom content type and link attributes
[minimedit.git] / nieuws / feed / index.php
index eff920365409f891b15d496dd1674119e82fb377..67687f31419c81255157fd4ce23c927d9e411cf1 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 ob_clean();
+header('Content-Type', 'application/atom+xml');
 print '<?xml version="1.0" encoding="utf-8"?>';
 $siteref = 'http://'.$_SERVER['HTTP_HOST'];
 ?>
@@ -29,7 +30,7 @@ foreach ($pages as $i => $page) {
                <link href="/<?= $article->link ?>" />
                <title><?= $article->title ?></title>
                <published><?= $article->dateiso ?></published>
-               <updated><?= $article->lastiso ?></updated>
+               <updated><?= $article->dateiso ?></updated>
                <content type="html"><?= htmlspecialchars($article->body) ?></content>
 <?php
        if ($article->thumb) {