From b20df9c33a542f88e48eddfb18c027a732564cdf Mon Sep 17 00:00:00 2001 From: jrmcclean <68025295+jrmcclean@users.noreply.github.com> Date: Tue, 23 Jul 2024 10:11:58 -0400 Subject: [PATCH] Update config.php (#6865) Added an option for Windows ProgramData --- resources/classes/config.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/classes/config.php b/resources/classes/config.php index e127f0b2bc..b7d90289ea 100644 --- a/resources/classes/config.php +++ b/resources/classes/config.php @@ -238,6 +238,9 @@ final class config { elseif (file_exists("/usr/local/etc/fusionpbx/config.php")) { $file = "/usr/local/etc/fusionpbx/config.php"; } + elseif (file_exists(getenv('SystemDrive') . DIRECTORY_SEPARATOR . 'ProgramData' . DIRECTORY_SEPARATOR . 'fusionpbx' . DIRECTORY_SEPARATOR . 'config.conf')) { + $file = getenv('SystemDrive') . DIRECTORY_SEPARATOR . 'ProgramData' . DIRECTORY_SEPARATOR . 'fusionpbx' . DIRECTORY_SEPARATOR . 'config.conf'; + } elseif (file_exists(dirname(__DIR__, 2) . "/resources/config.php")) { //use the current web directory to find it as a last resort $file = "/var/www/fusionpbx/resources/config.php";