]> git.wh0rd.org - tt-rss.git/commitdiff
Fix strict standards issue-- DOMDocument::load isn't static
authorRebecca Turner <turner@mikomi.org>
Mon, 18 Mar 2013 21:55:03 +0000 (17:55 -0400)
committerRebecca Turner <turner@mikomi.org>
Mon, 18 Mar 2013 22:14:37 +0000 (18:14 -0400)
classes/opml.php

index b91e395d1129d4108bd3dc18a66fae796fc7323b..34067e017330642e5bfb68d746d096c8ebcaf8bb 100644 (file)
@@ -462,7 +462,8 @@ class Opml extends Handler_Protected {
 #              if ($debug) $doc = DOMDocument::load("/tmp/test.opml");
 
                if (is_file($_FILES['opml_file']['tmp_name'])) {
-                       $doc = DOMDocument::load($_FILES['opml_file']['tmp_name']);
+                       $doc = new DOMDocument();
+                       $doc->load($_FILES['opml_file']['tmp_name']);
                } else if (!$doc) {
                        print_error(__('Error: please upload OPML file.'));
                        return;