core: use proxy when defined in RssExpander

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière 2016-07-08 19:26:07 +02:00
parent 226484ba22
commit 86515a1560

View file

@ -349,8 +349,11 @@ abstract class RssExpander extends HttpCachingBridgeAbstract{
}
// $this->message("Loading from ".$param['url']);
// Notice WE DO NOT use cache here on purpose : we want a fresh view of the RSS stream each time
$rssContent = simplexml_load_file($name) or $this->returnServerError('Could not request '.$name);
// $this->message("loaded RSS from ".$param['url']);
$content=$this->getContents($name) or
$this->returnServerError('Could not request '.$name);
$rssContent = simplexml_load_string($content);
// $this->message("loaded RSS from ".$param['url']);
// TODO insert RSS format detection
// we suppose for now, we have some RSS 2.0
$this->collect_RSS_2_0_data($rssContent);