From 2c51facf61536c07a5ba7845393488c3ba997d80 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 30 Jan 2018 14:41:27 +0300 Subject: [PATCH] Revert "import_export: do not use DOMDocument->loadXML in static context" This reverts commit 1ddf3a28e56d64fa8e80868e731cdde8b2abefa8. --- plugins/import_export/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/import_export/init.php b/plugins/import_export/init.php index a4a6387ef..1f7a31bad 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 = (new DOMDocument)->loadXML($data); + $doc = DOMDocument::loadXML($data); } libxml_disable_entity_loader(true);