Use static xml::valid method

This commit is contained in:
FusionPBX
2026-01-20 10:09:44 -07:00
committed by GitHub
parent 82cf999baf
commit 17a9634b14

View File

@@ -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;