]> git.wh0rd.org Git - tt-rss.git/commitdiff
import_export: do not use DOMDocument->loadXML in static context
authorAndrew Dolgov <noreply@fakecake.org>
Tue, 30 Jan 2018 10:17:05 +0000 (13:17 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Tue, 30 Jan 2018 10:17:05 +0000 (13:17 +0300)
plugins/import_export/init.php

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