update_rss_feed_real: allow overriding fetch url

This commit is contained in:
Andrew Dolgov 2011-08-27 00:28:09 +04:00
parent 85e836d868
commit 55ad314e0b

View file

@ -500,7 +500,8 @@
}
}
function update_rss_feed_real($link, $feed, $ignore_daemon = false, $no_cache = false) {
function update_rss_feed_real($link, $feed, $ignore_daemon = false, $no_cache = false,
$override_url = false) {
global $memcache;
@ -597,6 +598,9 @@
}
if ($override_url)
$fetch_url = $override_url;
if ($debug_enabled) {
_debug("update_rss_feed: fetching [$fetch_url]...");
}