mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-22 08:28:30 +00:00
Use static xml::valid method
This commit is contained in:
@@ -109,7 +109,7 @@
|
||||
if ($dialplan_valid) {
|
||||
preg_match_all('/^\s*<extension.+>(?:[\S\s])+<\/extension>\s*$/mU', $dialplan_xml, $matches);
|
||||
foreach($matches as $match) {
|
||||
if (valid_xml($xml)) {
|
||||
if (!xml::valid($xml)) {
|
||||
//$errors = libxml_get_errors();
|
||||
$dialplan_valid = false;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user