Skip to content
Snippets Groups Projects
Commit 9e51c7fb authored by Stein Magne Bjorklund's avatar Stein Magne Bjorklund
Browse files

Make sure exporter do not inject warnings/notify messages into document

- Also remove extra include of settings. No longer needed.
parent 93e6f476
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !16. Comments created here will be created in the context of that merge request.
...@@ -39,7 +39,7 @@ class Exporter ...@@ -39,7 +39,7 @@ class Exporter
array_push($triples, $t); array_push($triples, $t);
$t['o'] = LS . 'Application'; $t['o'] = LS . 'Application';
array_push($triples, $t); array_push($triples, $t);
if ($conf['parentApp'] != null) { if (isset($conf['parentApp']) && $conf['parentApp'] !== null) {
$t['p'] = OPMV . 'wasDerivedFrom'; $t['p'] = OPMV . 'wasDerivedFrom';
$t['o'] = $conf['parentApp']; $t['o'] = $conf['parentApp'];
array_push($triples, $t); array_push($triples, $t);
......
...@@ -47,7 +47,6 @@ if ($acceptContentType === null) { ...@@ -47,7 +47,6 @@ if ($acceptContentType === null) {
} }
if ($conf['export'] && $_GET['q'] === 'export') { if ($conf['export'] && $_GET['q'] === 'export') {
include_once('settings.inc.php');
$exp = new Exporter(); $exp = new Exporter();
header('Content-Type: text/plain'); header('Content-Type: text/plain');
$exp->run(); $exp->run();
......
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