Browse Source

import_export: do not use DOMDocument->loadXML in static context

Andrew Dolgov 11 months ago
parent
commit
1ddf3a28e5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/import_export/init.php

+ 1 - 1
plugins/import_export/init.php

@@ -217,7 +217,7 @@ class Import_Export extends Plugin implements IHandler {
 			}
 
 			if ($data)
-				$doc = DOMDocument::loadXML($data);
+				$doc = (new DOMDocument)->loadXML($data);
 		}
 
 		libxml_disable_entity_loader(true);