From ebb754088ba02d4c80c3915135d5ef98fbd71e65 Mon Sep 17 00:00:00 2001 From: Joshua Date: Wed, 27 Jul 2022 13:34:12 +1000 Subject: [PATCH] Fix incorrect config path --- front/php/server/db.php | 2 +- front/php/server/util.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/front/php/server/db.php b/front/php/server/db.php index 4bc80da8..d4458bc6 100644 --- a/front/php/server/db.php +++ b/front/php/server/db.php @@ -9,7 +9,7 @@ //------------------------------------------------------------------------------ // ## TimeZone processing -$config_file = "../config/pialert.conf"; +$config_file = "../../../config/pialert.conf"; $config_file_lines = file($config_file); $config_file_lines_timezone = array_values(preg_grep('/^TIMEZONE\s.*/', $config_file_lines)); $timezone_line = explode("'", $config_file_lines_timezone[0]); diff --git a/front/php/server/util.php b/front/php/server/util.php index ee4f8370..0869214d 100644 --- a/front/php/server/util.php +++ b/front/php/server/util.php @@ -9,7 +9,7 @@ //------------------------------------------------------------------------------ // ## TimeZone processing -$config_file = "../config/pialert.conf"; +$config_file = "../../../config/pialert.conf"; $config_file_lines = file($config_file); $config_file_lines_timezone = array_values(preg_grep('/^TIMEZONE\s.*/', $config_file_lines)); $timezone_line = explode("'", $config_file_lines_timezone[0]);