From 807c6e2f46324bf23748a4eec0f7e311a06a6526 Mon Sep 17 00:00:00 2001 From: volga629-1 <59034879+volga629-1@users.noreply.github.com> Date: Mon, 8 Dec 2025 09:50:01 -0500 Subject: [PATCH] Fix the vars.xml path by adding a missing forward slash (#7658) * Vars table v_vars is not propagate table data Path ``` $xml_file = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'app/switch/resources/conf/vars.xml'; ``` Will expand too ``` /usr/share/nginx/fusionpbxapp/switch/resources/conf/vars.xml ``` This causes a failure to provision data into v_vars table for installs with a customized path. --- app/vars/app_defaults.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vars/app_defaults.php b/app/vars/app_defaults.php index 8a759a7333..288c3735d8 100644 --- a/app/vars/app_defaults.php +++ b/app/vars/app_defaults.php @@ -63,7 +63,7 @@ if ($domains_processed == 1) { $xml_file = '/var/www/fusionpbx/app/switch/resources/conf/vars.xml'; } else { - $xml_file = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'app/switch/resources/conf/vars.xml'; + $xml_file = dirname(__DIR__, 2) . '/app/switch/resources/conf/vars.xml'; } //load the xml and save it into an array