mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-16 13:31:22 +02:00
Merge pull request #60 from iarna/strictness
Fix strict standards issue-- DOMDocument::load isn't static
This commit is contained in:
commit
88a500e3bc
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user