From cb13a827df11cdbfe12aa53f7df79d609b9a36ca Mon Sep 17 00:00:00 2001
From: Dominik Hebeler <dominik@suma-ev.de>
Date: Thu, 28 Jan 2021 16:17:36 +0100
Subject: [PATCH] seperated blacklist load

---
 app/MetaGer.php | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/app/MetaGer.php b/app/MetaGer.php
index 144b9e078..d2a10ba34 100644
--- a/app/MetaGer.php
+++ b/app/MetaGer.php
@@ -90,17 +90,17 @@ class MetaGer
             $this->domainsBlacklisted = explode("\n", $tmp);
             $tmp = file_get_contents(config_path() . "/blacklistUrl.txt");
             $this->urlsBlacklisted = explode("\n", $tmp);
-        } else {
-            Log::warning("Achtung: Eine, oder mehrere Blacklist Dateien, konnten nicht geöffnet werden");
         }
+        
         # Versuchen Blacklists einzulesen
-        if (file_exists(config_path() . "/adBlacklistDomains.txt") && file_exists(config_path() . "/adBlacklistUrl.txt")) {
+        if (file_exists(config_path() . "/adBlacklistDomains.txt")) {
             $tmp = file_get_contents(config_path() . "/adBlacklistDomains.txt");
             $this->adDomainsBlacklisted = explode("\n", $tmp);
+        }
+
+        if(file_exists(config_path() . "/adBlacklistUrl.txt")){
             $tmp = file_get_contents(config_path() . "/adBlacklistUrl.txt");
             $this->adUrlsBlacklisted = explode("\n", $tmp);
-        } else {
-            Log::warning("Achtung: Eine, oder mehrere Blacklist Dateien, konnten nicht geöffnet werden");
         }
 
         # Parser Skripte einhängen
-- 
GitLab