mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Change. Does not use default dialplan/directory.
I think it more consistent that it allows edit domain in single place.
Also on my Windows machine while installing all users/context creates not in `default` directory.
And I have problem because remove users did not work, `default.xml` file contain `$${v_domain}` variables.
This commit is contained in:
@@ -159,16 +159,9 @@
|
||||
//declare global variables
|
||||
global $config, $db, $domain_uuid;
|
||||
|
||||
//get the context based from the domain_uuid
|
||||
if (count($_SESSION['domains']) == 1) {
|
||||
$user_context = "default";
|
||||
}
|
||||
else {
|
||||
$user_context = $_SESSION['domains'][$domain_uuid]['domain_name'];
|
||||
}
|
||||
|
||||
//get the domain_name
|
||||
$domain_name = $_SESSION['domains'][$domain_uuid]['domain_name'];
|
||||
$user_context = $domain_name;
|
||||
|
||||
//delete all old extensions to prepare for new ones
|
||||
$dialplan_list = glob($_SESSION['switch']['extensions']['dir']."/".$user_context."/v_*.xml");
|
||||
|
||||
Reference in New Issue
Block a user