Commit 143cae1c authored by Pablo Rauzy's avatar Pablo Rauzy
Browse files

xml prolog should be on its own line

parent 6f4b072d
......@@ -547,7 +547,7 @@ function inform ($messages, $back) {
function rss ($num) {
global $settings, $entries;
ob_start();
echo '<?xml version="1.0" encoding="utf-8"?>'; ?>
echo '<?xml version="1.0" encoding="utf-8"?>',"\n"; ?>
<rss version="2.0">
<channel>
<title><?php echo $settings['title']; ?></title>
......@@ -573,7 +573,7 @@ function sitemap () {
global $settings, $pages;
$files = array_keys(array_filter($pages, function ($p) { return !in_array($p['status'], array('lnk', 'del', 'newdel')) && $p['grp'] > 0; }));
ob_start();
echo '<?xml version="1.0" encoding="utf-8"?>'; ?>
echo '<?xml version="1.0" encoding="utf-8"?>',"\n"; ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<?php foreach ($files as $f): ?>
<url><loc><?php echo $settings['url'],preg_replace('/index\.html$/', '', $f); ?></loc></url>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment