From 9e98cbbab226b015f92559489bbecf0f6df648d2 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Wed, 9 Dec 2020 08:56:42 +0100 Subject: [PATCH] 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]. --- sitemap.xml/index.php | 2 ++ widget/linkref.php | 8 ++++++++ 2 files changed, 10 insertions(+) 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')); -- 2.30.0