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

Importer class finally validates

- Easier to maintain without all errors.
parent a8a3985d
No related branches found
No related tags found
1 merge request!18Resolve "Remove all use of GLOBALS"
...@@ -166,6 +166,7 @@ final class Importer ...@@ -166,6 +166,7 @@ final class Importer
private function createEndpoints($ep) private function createEndpoints($ep)
{ {
$endpoints = ""; $endpoints = "";
$conf = $this->configuration->getConfigValue('conf', '');
try { try {
foreach ($ep as $k => $v) { foreach ($ep as $k => $v) {
...@@ -173,6 +174,7 @@ final class Importer ...@@ -173,6 +174,7 @@ final class Importer
$endpoints .= "\$conf[\"endpoint\"][\"$k\"] = \"$v\";\n"; $endpoints .= "\$conf[\"endpoint\"][\"$k\"] = \"$v\";\n";
} }
} }
$endpoints .= "\n\n"; $endpoints .= "\n\n";
} catch (Exception $e) { } catch (Exception $e) {
echo 'Caught exception while importing endpoints: ', $e->getMessage(), "\n"; echo 'Caught exception while importing endpoints: ', $e->getMessage(), "\n";
......
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