From d266155ebbb0ba77eb09443ca173e0c76dce4777 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