diff --git a/advanced/index.php b/advanced/index.php
index ff13ec60..62e45091 100644
--- a/advanced/index.php
+++ b/advanced/index.php
@@ -102,15 +102,6 @@ if ($blocklistglob === array()) {
die("[ERROR] There are no domain lists generated lists within /etc/pihole/
! Please update gravity by running pihole -g
, or repair Pi-hole using pihole -r
.");
}
-// Set location of adlists file
-if (is_file("/etc/pihole/adlists.list")) {
- $adLists = "/etc/pihole/adlists.list";
-} elseif (is_file("/etc/pihole/adlists.default")) {
- $adLists = "/etc/pihole/adlists.default";
-} else {
- die("[ERROR] File not found: /etc/pihole/adlists.list
");
-}
-
// Get possible non-standard location of FTL's database
$FTLsettings = parse_ini_file("/etc/pihole/pihole-FTL.conf");
if (isset($FTLsettings["GRAVITYDB"])) {
@@ -134,7 +125,7 @@ while ($row = $adlistResults->fetchArray()) {
}
if (empty($adlistsUrls))
- die("[ERROR]: There are no adlists configured");
+ die("[ERROR]: There are no adlists enabled");
// Get total number of blocklists (Including Whitelist, Blacklist & Wildcard lists)
$adlistsCount = count($adlistsUrls) + 3;