From 61d8b54dcb080c4192fdd17e8f5658b684d91fc3 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 14 Oct 2022 10:10:40 -0600 Subject: [PATCH] Fix the include path --- core/install/install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/install/install.php b/core/install/install.php index 9b1cac4670..439cb39bf0 100644 --- a/core/install/install.php +++ b/core/install/install.php @@ -25,8 +25,8 @@ */ //set the include path - $conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE); - set_include_path(parse_ini_file($conf[0])['document.root']); + $document_root = substr(getcwd(), 0, strlen($document_root) - strlen('/core/install')); + set_include_path($document_root); //includes files require_once "resources/functions.php";