Skip to content
Snippets Groups Projects
Verified Commit 0dcc4606 authored by Ingo Pfennigstorf's avatar Ingo Pfennigstorf :nail_care:
Browse files

Add root path for DOMElements

parent 8b6a5728
Branches master
No related tags found
No related merge requests found
......@@ -56,12 +56,12 @@ function transform(&$errorMessage)
$format = $formats[$parameters['format']];
if ($format !== null) {
$xslPath = '../Private/XSL/' . $format['xsl'];
$xsl = new DOMDocument();
$xsl = new \DOMDocument();
$xsl->load($xslPath);
$xsltproc = new XSLTProcessor();
$xsltproc->importStylesheet($xsl);
$xml = new DOMDocument();
$xml = new \DOMDocument();
if ($xml->loadXML($parameters['q'])) {
header('Content-Type: ' . $format['content-type'] . '; charset=utf-8');
if (array_key_exists('disposition', $format)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment