mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user