From 1ddf3a28e56d64fa8e80868e731cdde8b2abefa8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 30 Jan 2018 13:17:05 +0300 Subject: import_export: do not use DOMDocument->loadXML in static context --- plugins/import_export/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/import_export') diff --git a/plugins/import_export/init.php b/plugins/import_export/init.php index 1f7a31bad..a4a6387ef 100755 --- a/plugins/import_export/init.php +++ b/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); -- cgit v1.2.3