From 38c860f0fa5e8203b87780e46ecdea9ef0387c6c Mon Sep 17 00:00:00 2001 From: d47081 Date: Sat, 16 Jul 2022 16:24:24 +0300 Subject: [PATCH] fix URL paths --- crontab/sitemap.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crontab/sitemap.php b/crontab/sitemap.php index f10828c..5058d43 100644 --- a/crontab/sitemap.php +++ b/crontab/sitemap.php @@ -18,12 +18,12 @@ $transactions = []; foreach ($db->getData(false, false, false, 0, 1000000) as $value) { if (!in_array($value['namehash'], $namespaces)) { - $namespace .= '' . BASE_URL . '/' . $value['namehash'] . ''; + $namespace .= '' . BASE_URL . $value['namehash'] . ''; } if (!in_array($value['namehash'], $transactions)) { - $transaction .= '' . BASE_URL . '/' . $value['txid'] . ''; + $transaction .= '' . BASE_URL . $value['txid'] . ''; } $namespaces[] = $value['namehash']; @@ -47,10 +47,10 @@ fclose($handle); $sitemap = ''; $sitemap .= ''; $sitemap .= ' '; -$sitemap .= ' ' . BASE_URL . '/sitemap.namespace.xml'; +$sitemap .= ' ' . BASE_URL . 'sitemap.namespace.xml'; $sitemap .= ' '; $sitemap .= ' '; -$sitemap .= ' ' . BASE_URL . '/sitemap.transaction.xml'; +$sitemap .= ' ' . BASE_URL . 'sitemap.transaction.xml'; $sitemap .= ' '; $sitemap .= '';