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.
This commit is contained in:
volga629-1
2025-12-08 09:50:01 -05:00
committed by GitHub
parent 4c2e84f1bc
commit 807c6e2f46

View File

@@ -63,7 +63,7 @@ if ($domains_processed == 1) {
$xml_file = '/var/www/fusionpbx/app/switch/resources/conf/vars.xml'; $xml_file = '/var/www/fusionpbx/app/switch/resources/conf/vars.xml';
} }
else { 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 //load the xml and save it into an array