Skip to content
Snippets Groups Projects
Commit 8080d1e0 authored by totten's avatar totten
Browse files

CRM_Utils_Migrate_Import - Fix static warning

parent d18d8cd0
Branches
Tags
No related merge requests found
......@@ -39,7 +39,10 @@ class CRM_Utils_Migrate_Import {
function run($file) {
// read xml file
$dom = DomDocument::load($file);
$dom = new DomDocument();
if (! $dom->load($file)) {
throw new CRM_Core_Exception("Failed to parse XML file \"$file\"");
}
$dom->xinclude();
$xml = simplexml_import_dom($dom);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment