mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-14 20:21:14 +03:00
[CorreioDaFeiraBridge] cache timeout + getName fixes (#3453)
* [CorreioDaFeiraBridge] cache timeout fix * [CorreioDaFeiraBridge] cache timeout fix * [CorreioDaFeiraBridge] getName() fix
This commit is contained in:
parent
a4ed52ca30
commit
1b02d4f49b
1 changed files with 2 additions and 5 deletions
|
@ -6,6 +6,7 @@ class CorreioDaFeiraBridge extends BridgeAbstract
|
|||
const URI = 'https://www.correiodafeira.pt/';
|
||||
const DESCRIPTION = 'Returns news from the Portuguese local newspaper Correio da Feira';
|
||||
const MAINTAINER = 'rmscoelho';
|
||||
const CACHE_TIMEOUT = 86400;
|
||||
const PARAMETERS = [
|
||||
[
|
||||
'feed' => [
|
||||
|
@ -36,11 +37,7 @@ class CorreioDaFeiraBridge extends BridgeAbstract
|
|||
|
||||
public function getName()
|
||||
{
|
||||
$feed = $this->getInput('feed');
|
||||
if ($this->getInput('feed') !== null && $this->getInput('feed') !== '') {
|
||||
return self::NAME . ' | ' . ucfirst($feed);
|
||||
}
|
||||
return self::NAME;
|
||||
return !is_null($this->getKey('feed')) ? self::NAME . ' | ' . $this->getKey('feed') : self::NAME;
|
||||
}
|
||||
|
||||
public function getURI()
|
||||
|
|
Loading…
Add table
Reference in a new issue