Browse Source

fix double slashes in the URL

pull/8/head
d47081 2 years ago
parent
commit
7feed325ca
  1. 4
      public/rss.phtml

4
public/rss.phtml

@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel> <channel>
<atom:link href="<?php echo BASE_URL; ?>/?rss" rel="self" type="application/rss+xml" /> <atom:link href="<?php echo BASE_URL; ?>?rss" rel="self" type="application/rss+xml" />
<title><?php echo $namespaceValue ? $namespaceValue : 'KVAZAR'; ?></title> <title><?php echo $namespaceValue ? $namespaceValue : 'KVAZAR'; ?></title>
<description>Observe Kevacoin Universe</description> <description>Observe Kevacoin Universe</description>
<?php foreach ($data as $item) { ?> <?php foreach ($data as $item) { ?>
<item> <item>
<title><?php echo $item['key']; ?></title> <title><?php echo $item['key']; ?></title>
<guid><?php echo BASE_URL; ?>/<?php echo $item['txid']; ?></guid> <guid><?php echo BASE_URL; ?><?php echo $item['txid']; ?></guid>
<pubDate><?php echo $item['time']; ?></pubDate> <pubDate><?php echo $item['time']; ?></pubDate>
<description><?php echo $item['value']; ?></description> <description><?php echo $item['value']; ?></description>
</item> </item>

Loading…
Cancel
Save