login/pass: error messages below page title
[minimedit.git] / nieuws / feed / index.php
index a5a5eeef2137a6df022ec8a29328fe3b65c1f645..9fb71a9ae86de7cf7bc2c43e3956a832e717d361 100644 (file)
@@ -14,7 +14,7 @@ $siteref = (empty($_SERVER['HTTPS']) ? 'http' : 'https') . '://' . $_SERVER['HTT
        <icon>/favicon.png</icon>
        <author><name>Lijtweg</name></author>
 <?php
-$root = preg_replace('{/feed$}', '', $Page) . "/2???";
+$root = preg_replace('{/feed$}', '', $Page->handler) . "/2???";
 $pages = array_reverse(glob("$root/*.html"));
 
 foreach ($pages as $i => $page) {
@@ -29,8 +29,8 @@ foreach ($pages as $i => $page) {
                <id><?= $siteref . '/' . $article->link ?></id>
                <link href="<?= $siteref . '/' . $article->link ?>" />
                <title><?= $article->title ?></title>
-               <published><?= $article->dateiso ?></published>
-               <updated><?= $article->dateiso ?></updated>
+               <published><?= $article->meta['article:published_time'] ?? $article->dateiso ?></published>
+               <updated><?= $article->meta['article:modified_time'] ?? $article->dateiso ?></updated>
 <?php
        if ($article->teaser) {
                printf("\t\t<summary>%s</summary>\n", htmlspecialchars($article->teaser));