summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--functions.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index a31e52e0b..c17d9d64e 100644
--- a/functions.php
+++ b/functions.php
@@ -2973,7 +2973,12 @@
if (db_num_rows($result) == 0) {
if (url_is_html($url)) {
- return 3;
+ $feedUrls = get_feeds_from_html($url);
+ if (count($feedUrls) != 1) {
+ return 3;
+ }
+ //use feed url as new URL
+ $url = key($feedUrls);
}
$result = db_query($link,