mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-21 15:51:55 +02:00
bridges: Put name/uri directly in bridge metadata
Some bridges used getName() and getURI() to put information into the metadatas. Instead the metadatas should be initialized with data and (not yet done) returned by default via getName() and getURI().
This commit is contained in:
@@ -4,8 +4,8 @@ class DilbertBridge extends BridgeAbstract {
|
||||
public function loadMetadatas() {
|
||||
|
||||
$this->maintainer = 'kranack';
|
||||
$this->name = $this->getName();
|
||||
$this->uri = $this->getURI();
|
||||
$this->name = 'Dilbert Daily Strip';
|
||||
$this->uri = 'http://dilbert.com';
|
||||
$this->description = 'The Unofficial Dilbert Daily Comic Strip';
|
||||
$this->update = "2016-08-06";
|
||||
|
||||
@@ -39,11 +39,11 @@ class DilbertBridge extends BridgeAbstract {
|
||||
}
|
||||
|
||||
public function getName() {
|
||||
return 'Dilbert Daily Strip';
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function getURI() {
|
||||
return 'http://dilbert.com';
|
||||
return $this->uri;
|
||||
}
|
||||
|
||||
public function getCacheDuration() {
|
||||
|
Reference in New Issue
Block a user