From 9bcc63be7477baf4eec773e16ab7793eda368a64 Mon Sep 17 00:00:00 2001 From: Stein Magne Bjorklund <steinmb@smbjorklund.com> Date: Fri, 17 Sep 2021 14:50:56 +0200 Subject: [PATCH] Importer no longer need to manually load application settings First thing application do is loading the settings making sure that it is available. --- classes/Importer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/Importer.php b/classes/Importer.php index 7ace9003..89c5efef 100644 --- a/classes/Importer.php +++ b/classes/Importer.php @@ -156,8 +156,8 @@ class Importer private function createEndpoints($ep) { - require('common.inc.php'); $endpoints = ""; + try { foreach ($ep as $k => $v) { if ($conf['endpoint'][$k] != $v) { @@ -169,6 +169,7 @@ class Importer echo 'Caught exception while importing endpoints: ', $e->getMessage(), "\n"; exit(1); } + return $endpoints; } -- GitLab