Skip to content
Snippets Groups Projects
Commit 8aecb872 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 b3c27244
No related branches found
No related tags found
1 merge request!16Resolve "Introduce PSR-4 autoloading"
...@@ -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