From b373e3c7fe68a6524d0601cc0d1b1239f6623291 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 11 Oct 2022 15:53:18 -0600 Subject: [PATCH] Needed to get DOCUMENT_ROOT and PROJECT_PATH --- resources/classes/domains.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/classes/domains.php b/resources/classes/domains.php index e41d7c84a1..45477ae224 100644 --- a/resources/classes/domains.php +++ b/resources/classes/domains.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2021 + Portions created by the Initial Developer are Copyright (C) 2008-2022 the Initial Developer. All Rights Reserved. Contributor(s): @@ -625,6 +625,9 @@ if (!class_exists('domains')) { $conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE); set_include_path(parse_ini_file($conf[0])['document.root']); + //includes files + include "resources/require.php"; + //check for default settings $this->settings(); @@ -754,6 +757,9 @@ if (!class_exists('domains')) { */ public function settings() { + //includes files + include "resources/require.php"; + //get an array of the default settings UUIDs $sql = "select * from v_default_settings "; $database = new database;