From: Andrew Dolgov Date: Fri, 26 Aug 2011 20:28:09 +0000 (+0400) Subject: update_rss_feed_real: allow overriding fetch url X-Git-Tag: 1.5.6~44 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=55ad314e0bb4e42f766c47585a5ba4753558f408;p=tt-rss.git update_rss_feed_real: allow overriding fetch url --- diff --git a/functions.php b/functions.php index d6f116a8..e0b5fc99 100644 --- a/functions.php +++ b/functions.php @@ -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]..."); }