mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-29 03:01:28 +00:00
opml import: add workaround for LiveJournal OPML files with xmlURL attribute
This commit is contained in:
@@ -37,6 +37,10 @@
|
||||
}
|
||||
|
||||
$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);
|
||||
|
||||
$pref_name = db_escape_string($outline->attributes->getNamedItem('pref-name')->nodeValue);
|
||||
|
||||
Reference in New Issue
Block a user