Skip to content
Snippets Groups Projects
Commit 0d471a12 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

opml import: add workaround for LiveJournal OPML files with xmlURL attribute

parent b25df544
No related branches found
No related tags found
No related merge requests found
...@@ -37,6 +37,10 @@ ...@@ -37,6 +37,10 @@
} }
$feed_url = db_escape_string($outline->attributes->getNamedItem('xmlUrl')->nodeValue); $feed_url = db_escape_string($outline->attributes->getNamedItem('xmlUrl')->nodeValue);
if (!$feed_url)
$feed_url = db_escape_string($outline->attributes->getNamedItem('xmlURL')->nodeValue);
$site_url = db_escape_string($outline->attributes->getNamedItem('htmlUrl')->nodeValue); $site_url = db_escape_string($outline->attributes->getNamedItem('htmlUrl')->nodeValue);
$pref_name = db_escape_string($outline->attributes->getNamedItem('pref-name')->nodeValue); $pref_name = db_escape_string($outline->attributes->getNamedItem('pref-name')->nodeValue);
......
...@@ -39,6 +39,10 @@ ...@@ -39,6 +39,10 @@
} }
$feed_url = db_escape_string($outline->get_attribute('xmlUrl')); $feed_url = db_escape_string($outline->get_attribute('xmlUrl'));
if (!$feed_url)
$feed_url = db_escape_string($outline->get_attribute('xmlURL'));
$site_url = db_escape_string($outline->get_attribute('htmlUrl')); $site_url = db_escape_string($outline->get_attribute('htmlUrl'));
if ($cat_title && !$feed_url) { if ($cat_title && !$feed_url) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment