1
0
Fork 0
forked from blallo/rss-bridge

make the bridge compatible with wordpress with no static URL (#469)

This commit is contained in:
Astyan-42 2017-02-07 11:24:18 +01:00 committed by Teromene
parent 1028e538ab
commit a1764a9fe2

View file

@ -66,8 +66,11 @@ class WordPressBridge extends FeedExpander {
// just in case someone find a way to access local files by playing with the url // just in case someone find a way to access local files by playing with the url
returnClientError('The url parameter must either refer to http or https protocol.'); returnClientError('The url parameter must either refer to http or https protocol.');
} }
try{
$this->collectExpandableDatas($this->getURI().'/feed/atom/'); $this->collectExpandableDatas($this->getURI().'/feed/atom/');
}catch (HttpException $e){
$this->collectExpandableDatas($this->getURI().'/?feed=atom');
}
} }
} }