Unverified Commit e49ad5b6 authored by Dave Reid's avatar Dave Reid
Browse files

Fixed xsi:schemaLocation not added properly.

parent e866937d
......@@ -151,10 +151,10 @@ class XmlSitemapWriter extends \XMLWriter {
$attributes['xmlns:xsi'] = 'http://www.w3.org/2001/XMLSchema-instance';
$attributes['xsi:schemaLocation'] = 'http://www.sitemaps.org/schemas/sitemap/0.9';
if ($this->isIndex()) {
$attributes['xsi:schemaLocation'] = ' ' . $attributes['xsi:schemaLocation'] . '/siteindex.xsd';
$attributes['xsi:schemaLocation'] .= ' http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd';
}
else {
$attributes['xsi:schemaLocation'] = ' ' . $attributes['xsi:schemaLocation'] . '/sitemap.xsd';
$attributes['xsi:schemaLocation'] .= ' http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd';
}
}
......
Markdown is supported
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