diff options
author | Christian Weiske <[email protected]> | 2010-11-10 23:13:34 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-11 09:44:28 +0300 |
commit | 923818fc8dac01f18b9ac269ab6dc10851774959 (patch) | |
tree | 4b0c6ae61972e731803b5ab30fa2ade3913517f6 | |
parent | f679105cb2adc6de3e41527830fa0bfde36324d1 (diff) |
use rewrite_relative_url() in get_feeds_from_html() instead of using that hack
-rw-r--r-- | functions.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/functions.php b/functions.php index a52dafddd..cd6fafd11 100644 --- a/functions.php +++ b/functions.php @@ -6941,11 +6941,9 @@ if ($title == '') { $title = $entry->getAttribute('type'); } - $feedUrl = $entry->getAttribute('href'); - if (strpos($feedUrl, '://') === false) { - //no protocol -> relative URL - $feedUrl = $baseUrl . $feedUrl; - } + $feedUrl = rewrite_relative_url( + $baseUrl, $entry->getAttribute('href') + ); $feedUrls[$feedUrl] = $title; } } |