From 4f7018700aa5fcdbf0840861efb5d443629fa396 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 10 Oct 2022 13:18:54 -0600 Subject: [PATCH] Replace root.php with config.conf --- app/dialplans/dialplan_xml.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/dialplans/dialplan_xml.php b/app/dialplans/dialplan_xml.php index 3e2846eb26..81497ba431 100644 --- a/app/dialplans/dialplan_xml.php +++ b/app/dialplans/dialplan_xml.php @@ -25,8 +25,11 @@ Luis Daniel Lucio Quiroz */ -//includes - require_once "root.php"; +//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']); + +//includes files require_once "resources/require.php"; require_once "resources/check_auth.php";