]> git.wh0rd.org - tt-rss.git/commitdiff
Revert "import_export: do not use DOMDocument->loadXML in static context"
authorAndrew Dolgov <noreply@fakecake.org>
Tue, 30 Jan 2018 11:41:27 +0000 (14:41 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Tue, 30 Jan 2018 11:41:27 +0000 (14:41 +0300)
This reverts commit 1ddf3a28e56d64fa8e80868e731cdde8b2abefa8.

plugins/import_export/init.php

index a4a6387efd431ffe3b666bf749efd89689dbd6c2..1f7a31bad18d0660101da22b6c04c61d85133180 100755 (executable)
@@ -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);