mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-06 16:46:30 +02:00
[core + bridges] get rid of loadMetadata
if a bridge needs to modify some of the data that were initialized there, ::__construct() should be used instead. Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
<?php
|
||||
class FlickrExploreBridge extends BridgeAbstract{
|
||||
|
||||
public function loadMetadatas() {
|
||||
|
||||
$this->maintainer = "sebsauvage";
|
||||
$this->name = "Flickr Explore";
|
||||
$this->uri = "https://www.flickr.com/explore";
|
||||
$this->description = "Returns the latest interesting images from Flickr";
|
||||
|
||||
}
|
||||
public $maintainer = "sebsauvage";
|
||||
public $name = "Flickr Explore";
|
||||
public $uri = "https://www.flickr.com/explore";
|
||||
public $description = "Returns the latest interesting images from Flickr";
|
||||
|
||||
public function collectData(){
|
||||
$html = $this->getSimpleHTMLDOM('https://www.flickr.com/explore') or $this->returnServerError('Could not request Flickr.');
|
||||
|
Reference in New Issue
Block a user