X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/9e98cbbab226b015f92559489bbecf0f6df648d2..HEAD:/sitemap.xml/index.php diff --git a/sitemap.xml/index.php b/sitemap.xml/index.php index 82abc75..a753b52 100644 --- a/sitemap.xml/index.php +++ b/sitemap.xml/index.php @@ -1,5 +1,5 @@ api) return; header('Content-Type: application/atom+xml; charset=utf-8'); print ''; $siteref = (empty($_SERVER['HTTPS']) ? 'http' : 'https') . '://' . $_SERVER['HTTP_HOST']; @@ -9,8 +9,7 @@ $siteref = (empty($_SERVER['HTTPS']) ? 'http' : 'https') . '://' . $_SERVER['HTT files() as $link) { - $article = new ArchiveArticle($link); +foreach ($search->files() as $article) { print ''; print "$siteref/{$article->link}"; $score = 10;