From: Mischa POSLAWSKY Date: Wed, 9 Dec 2020 07:56:42 +0000 (+0100) Subject: sitemap: apply link metadata from handler call X-Git-Tag: v5.0~18 X-Git-Url: http://git.shiar.nl/minimedit.git/commitdiff_plain/9e98cbbab226b015f92559489bbecf0f6df648d2 sitemap: apply link metadata from handler call Execute generic index code introduced in commit v4.5-23-gb9757db578 (2020-12-19) [login: userless handler call to obtain metadata]. --- diff --git a/sitemap.xml/index.php b/sitemap.xml/index.php index 55c293c..82abc75 100644 --- a/sitemap.xml/index.php +++ b/sitemap.xml/index.php @@ -7,6 +7,7 @@ $siteref = (empty($_SERVER['HTTPS']) ? 'http' : 'https') . '://' . $_SERVER['HTT files() as $link) { $article = new ArchiveArticle($link); @@ -25,6 +26,7 @@ foreach ($search->files() as $link) { } print "\n"; } +$Page = $caller; ?> place[0]); + if ($article->handler) { + $Page = $article; + $User = NULL; + ob_start(); + include "./{$article->handler}/index.php"; + ob_end_clean(); + $article = $Page; + } printf('%s', $article->link, $article->name); if ($article->image) { printf("\n\t".'', $article->thumb('100x100'));