Skip to content

Commit c0acf0a

Browse files
committed
Fix error with echoing xml version
1 parent 021e99c commit c0acf0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/templates/News.rss.phtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
namespace BNETDocs\Templates;
44

55
use \CarlBennett\MVC\Libraries\Common;
6+
7+
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
68
?>
7-
<?xml version="1.0"?>
89
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
910
<channel>
1011
<atom:link href="<?php echo Common::relativeUrlToAbsolute("/news.rss"); ?>" rel="self" type="application/rss+xml" />

0 commit comments

Comments
 (0)