From 7f104b24f6753c54f34e7a5c0b3b508772e79eb7 Mon Sep 17 00:00:00 2001 From: Stein Magne Bjorklund <steinmb@smbjorklund.com> Date: Mon, 20 Sep 2021 20:34:01 +0200 Subject: [PATCH] Importer class finally validates - Easier to maintain without all errors. --- classes/Importer.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/Importer.php b/classes/Importer.php index 7862bd07..e8b162ec 100644 --- a/classes/Importer.php +++ b/classes/Importer.php @@ -166,6 +166,7 @@ final class Importer private function createEndpoints($ep) { $endpoints = ""; + $conf = $this->configuration->getConfigValue('conf', ''); try { foreach ($ep as $k => $v) { @@ -173,6 +174,7 @@ final class Importer $endpoints .= "\$conf[\"endpoint\"][\"$k\"] = \"$v\";\n"; } } + $endpoints .= "\n\n"; } catch (Exception $e) { echo 'Caught exception while importing endpoints: ', $e->getMessage(), "\n"; -- GitLab