sitemap: apply link metadata from handler call
[minimedit.git] / sitemap.xml / index.php
index 55c293ca9ed31d13e93fdde83a0757627711ff1a..82abc75ab7bd639f51a244f10813e221bac747cd 100644 (file)
@@ -7,6 +7,7 @@ $siteref = (empty($_SERVER['HTTPS']) ? 'http' : 'https') . '://' . $_SERVER['HTT
 
 <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
 <?php
+$caller = $Page;
 $search = new PageSearch();
 foreach ($search->files() as $link) {
        $article = new ArchiveArticle($link);
@@ -25,6 +26,7 @@ foreach ($search->files() as $link) {
        }
        print "</url>\n";
 }
+$Page = $caller;
 ?>
 </urlset>
 <?php