diff --git a/app/MetaGer.php b/app/MetaGer.php index 144b9e0789a3cd45c106036329dc9e79b90b5dd8..d2a10ba34a14f6d14f2141dc8a4a5a3cc20b3e5a 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