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

Importer no longer need to manually load application settings

First thing application do is loading the settings making sure
that it is available.
parent 8b5af581
No related branches found
No related tags found
No related merge requests found
...@@ -156,8 +156,8 @@ class Importer ...@@ -156,8 +156,8 @@ class Importer
private function createEndpoints($ep) private function createEndpoints($ep)
{ {
require('common.inc.php');
$endpoints = ""; $endpoints = "";
try { try {
foreach ($ep as $k => $v) { foreach ($ep as $k => $v) {
if ($conf['endpoint'][$k] != $v) { if ($conf['endpoint'][$k] != $v) {
...@@ -169,6 +169,7 @@ class Importer ...@@ -169,6 +169,7 @@ class Importer
echo 'Caught exception while importing endpoints: ', $e->getMessage(), "\n"; echo 'Caught exception while importing endpoints: ', $e->getMessage(), "\n";
exit(1); exit(1);
} }
return $endpoints; return $endpoints;
} }
......
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