mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
[Bridge] Rename parameter 'name' to 'url'
This commit is contained in:
parent
2aa9b8f026
commit
0e5775012f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user