Fix a dialplan bug I caused 23 hours ago.
This commit is contained in:
parent
f2db211c44
commit
cd92693e46
|
|
@ -43,8 +43,9 @@
|
||||||
fwrite($fh, $file_default_contents);
|
fwrite($fh, $file_default_contents);
|
||||||
fclose($fh);
|
fclose($fh);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//get the $apps array from the installed apps from the core and mod directories
|
//get the $apps array from the installed apps from the core and mod directories
|
||||||
$xml_list = glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/*/*/resources/xml/dialplan/*.xml");
|
$xml_list = glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/*/*/resources/xml/dialplan/*.xml");
|
||||||
foreach ($xml_list as &$xml_file) {
|
foreach ($xml_list as &$xml_file) {
|
||||||
//get and parse the xml
|
//get and parse the xml
|
||||||
|
|
@ -69,6 +70,5 @@
|
||||||
$dialplan->xml = $xml_string;
|
$dialplan->xml = $xml_string;
|
||||||
$dialplan->import();
|
$dialplan->import();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
Loading…
Reference in New Issue