mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-16 13:34:11 +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:
@@ -3,8 +3,8 @@ class EstCeQuonMetEnProdBridge extends BridgeAbstract {
|
||||
|
||||
public function loadMetadatas() {
|
||||
$this->maintainer = 'ORelio';
|
||||
$this->name = $this->getName();
|
||||
$this->uri = $this->getURI();
|
||||
$this->name = 'Est-ce qu\'on met en prod aujourd\'hui ?';
|
||||
$this->uri = 'https://www.estcequonmetenprodaujourdhui.info/';
|
||||
$this->description = 'Should we put a website in production today? (French)';
|
||||
$this->update = "2016-08-06";
|
||||
}
|
||||
@@ -38,11 +38,11 @@ class EstCeQuonMetEnProdBridge extends BridgeAbstract {
|
||||
}
|
||||
|
||||
public function getName() {
|
||||
return 'Est-ce qu\'on met en prod aujourd\'hui ?';
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function getURI() {
|
||||
return 'https://www.estcequonmetenprodaujourdhui.info/';
|
||||
return $this->uri;
|
||||
}
|
||||
|
||||
public function getCacheDuration() {
|
||||
|
Reference in New Issue
Block a user