From 98c39afc06cd191bfbaa7f4d709dcd4cf2537825 Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Mon, 18 Mar 2013 17:55:03 -0400 Subject: [PATCH] Fix strict standards issue-- DOMDocument::load isn't static --- classes/opml.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5