summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-01-30 13:17:05 +0300
committerAndrew Dolgov <[email protected]>2018-01-30 13:17:05 +0300
commit1ddf3a28e56d64fa8e80868e731cdde8b2abefa8 (patch)
tree785042a6406f3509c9b0fa785ea6846d80116e1b
parent365f5c8b53e949fe02c41dde7b313195ac1171ec (diff)
import_export: do not use DOMDocument->loadXML in static context
-rwxr-xr-xplugins/import_export/init.php2
1 files changed, 1 insertions, 1 deletions
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);