1
0
Fork 0
forked from blallo/rss-bridge

[Bridge] Rename parameter 'name' to 'url'

This commit is contained in:
logmanoriginal 2016-09-04 11:01:13 +02:00
parent 2aa9b8f026
commit 0e5775012f

View file

@ -591,20 +591,20 @@ abstract class RssExpander extends HttpCachingBridgeAbstract {
private $uri; private $uri;
private $description; private $description;
public function collectExpandableDatas($name){ public function collectExpandableDatas($url){
if(empty($name)){ if(empty($url)){
$this->returnServerError('There is no $name for this RSS expander'); $this->returnServerError('There is no $url for this RSS expander');
} }
$this->debugMessage('Loading from ' . $name); $this->debugMessage('Loading from ' . $url);
/* Notice we do not use cache here on purpose: /* Notice we do not use cache here on purpose:
* we want a fresh view of the RSS stream each time * we want a fresh view of the RSS stream each time
*/ */
$content = $this->getContents($name) or $this->returnServerError('Could not request ' . $name); $content = $this->getContents($url) or $this->returnServerError('Could not request ' . $url);
$rssContent = simplexml_load_string($content); $rssContent = simplexml_load_string($content);
$this->debugMessage('loaded RSS from ' . $name); $this->debugMessage('loaded RSS from ' . $url);
if(isset($rssContent->channel[0])){ // RSS format if(isset($rssContent->channel[0])){ // RSS format
// TODO insert RSS format detection // TODO insert RSS format detection