From: Rebecca Turner Date: Mon, 18 Mar 2013 21:55:03 +0000 (-0400) Subject: Fix strict standards issue-- DOMDocument::load isn't static X-Git-Tag: 1.7.5~124^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=98c39afc06cd191bfbaa7f4d709dcd4cf2537825;p=tt-rss.git Fix strict standards issue-- DOMDocument::load isn't static --- diff --git a/classes/opml.php b/classes/opml.php index b91e395d..34067e01 100644 --- a/classes/opml.php +++ b/classes/opml.php @@ -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;