page: rename article method "body" to "story"
[minimedit.git] / nieuws / feed / index.php
index 9dc05ec64733e69f537f548c8f997f7df191be87..72c22074c2af16b1649620522a3225ba26457fca 100644 (file)
@@ -13,7 +13,6 @@ $siteref = (empty($_SERVER['HTTPS']) ? 'http' : 'https') . '://' . $_SERVER['HTT
        <link href="<?= $siteref . $_SERVER['REQUEST_URI'] ?>" rel="self" />
        <author><name>Lijtweg</name></author>
 <?php
-include 'nieuws.inc.php';
 $root = preg_replace('{/feed$}', '', $Page) . "/2???";
 $pages = array_reverse(glob("$root/*.html"));
 
@@ -27,11 +26,11 @@ foreach ($pages as $i => $page) {
 
        <entry>
                <id><?= $siteref . '/' . $article->link ?></id>
-               <link href="/<?= $article->link ?>" />
+               <link href="<?= $siteref . '/' . $article->link ?>" />
                <title><?= $article->title ?></title>
                <published><?= $article->dateiso ?></published>
                <updated><?= $article->dateiso ?></updated>
-               <content type="html"><?= htmlspecialchars($article->body) ?>
+               <content type="html"><?= htmlspecialchars($article->story) ?>
                </content>
 <?php
        if ($article->thumb) {