opml import: add workaround for LiveJournal OPML files with xmlURL attribute
This commit is contained in:
parent
b25df544b4
commit
0d471a1233
|
@ -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 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
$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) {
|
||||||
|
|
Loading…
Reference in New Issue