summaryrefslogtreecommitdiff
path: root/modules/opml_domdoc.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-09-21 11:53:54 +0400
committerAndrew Dolgov <[email protected]>2010-09-21 11:53:54 +0400
commit0d471a1233f5ba1e0c70adfab2d90a42f7a7d370 (patch)
treeefc539022c859d9d25b9142496b27eca3b66458a /modules/opml_domdoc.php
parentb25df544b4d77a3deb43c9968797e5703e1e84f2 (diff)
opml import: add workaround for LiveJournal OPML files with xmlURL attribute
Diffstat (limited to 'modules/opml_domdoc.php')
-rw-r--r--modules/opml_domdoc.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/opml_domdoc.php b/modules/opml_domdoc.php
index a1efb1e93..08715093a 100644
--- a/modules/opml_domdoc.php
+++ b/modules/opml_domdoc.php
@@ -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);