Mercurial > SimpleWebPresenter
diff Sitemap.inc.php @ 136:60bc8f62384d default tip
Use internal URL if available to generate Sitemap.
| author | Tom Fredrik Blenning <bfg@bfgconsult.no> |
|---|---|
| date | Mon, 23 Jan 2023 00:17:36 +0100 |
| parents | b6b4a58c7625 |
| children |
line wrap: on
line diff
--- a/Sitemap.inc.php Mon Jan 23 00:16:26 2023 +0100 +++ b/Sitemap.inc.php Mon Jan 23 00:17:36 2023 +0100 @@ -151,7 +151,8 @@ usort($urls, "cmp_length_lex"); foreach($urls as $location) { - $headers = Http::getHeaders($location, 5); + $loc=$this->options->getInternalFromExternal($location, $base); + $headers = Http::getHeaders($loc, 5); $location = htmlentities($location);
