From 114fe7252c0a7731ca69b28ef25ad3d7c357ab64 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 10 Oct 2022 13:19:40 -0600 Subject: [PATCH] Replace root.php with config.conf --- app/dialplans/dialplan_edit.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/dialplans/dialplan_edit.php b/app/dialplans/dialplan_edit.php index 4858a9efab..10eae6cd0b 100644 --- a/app/dialplans/dialplan_edit.php +++ b/app/dialplans/dialplan_edit.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"; require_once "resources/paging.php";