Use DEFAULT_FTLCONFFILE

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König
2022-04-23 19:44:11 +02:00
parent d3aafaa30f
commit a097d63b3b

View File

@@ -9,8 +9,9 @@ require "scripts/pi-hole/php/header.php";
require "scripts/pi-hole/php/savesettings.php";
require_once "scripts/pi-hole/php/FTL.php";
// Reread ini file as things might have been changed
// DEFAULT_FTLCONFFILE is set in "scripts/pi-hole/php/FTL.php";
$setupVars = parse_ini_file("/etc/pihole/setupVars.conf");
$piholeFTLConf = piholeFTLConfig("/etc/pihole/pihole-FTL.conf" ,true);
$piholeFTLConf = piholeFTLConfig(DEFAULT_FTLCONFFILE ,true);
// Handling of PHP internal errors
$last_error = error_get_last();