Commit aa208a74 authored by matglas86's avatar matglas86 Committed by Dave Reid

Issue #1276232 by matglas86 | Sifro: Fixed invalid XSL URI when using multilingual sitemaps.

parent d7f36f69
......@@ -65,7 +65,7 @@ class XMLSitemapWriter extends XMLWriter {
* Add the XML stylesheet to the XML page.
*/
public function writeXSL() {
$this->writePi('xml-stylesheet', 'type="text/xsl" href="' . url('sitemap.xsl') . '"');
$this->writePi('xml-stylesheet', 'type="text/xsl" href="' . url('sitemap.xsl', $this->sitemap->uri['options']) . '"');
$this->writeRaw(PHP_EOL);
}
......
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