Commit 8dc1d3be authored by Kgaut's avatar Kgaut Committed by pifagor
Browse files

Issue #2986892 by Kgaut, hswong3i, alex_optim, pifagor:...

Issue #2986892 by Kgaut, hswong3i, alex_optim, pifagor: XMLWriter::writeElement() expects parameter 2 to be string, object given XmlSitemapWriter.php
parent 9cbfca97
......@@ -227,6 +227,9 @@ class XmlSitemapWriter extends \XMLWriter {
}
$this->endElement();
}
elseif(is_object($content)) {
parent::writeElement($name, $content->toString());
}
else {
parent::writeElement($name, $content);
}
......
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