summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-01-30 14:41:27 +0300
committerAndrew Dolgov <[email protected]>2018-01-30 14:41:27 +0300
commit2c51facf61536c07a5ba7845393488c3ba997d80 (patch)
tree6fbdba9c0da952432093fc4a10a7b288f82e220b /plugins
parent1ddf3a28e56d64fa8e80868e731cdde8b2abefa8 (diff)
Revert "import_export: do not use DOMDocument->loadXML in static context"
This reverts commit 1ddf3a28e56d64fa8e80868e731cdde8b2abefa8.
Diffstat (limited to 'plugins')
-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 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);