1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-31 13:50:23 +02:00

Fix title if language not set

This commit is contained in:
Kirill Kotikov
2020-03-22 21:43:37 +03:00
committed by GitHub
parent ec7ef8f502
commit 3ec32bb6c2

View File

@@ -625,7 +625,9 @@ class GithubTrendingBridge extends BridgeAbstract {
}
public function getName(){
if(!is_null($this->getInput('language'))) {
if($this->getInput('language') == '') {
return self::NAME . ' - all';
} elseif (!is_null($this->getInput('language'))) {
return self::NAME . ' - ' . $this->getInput('language');
}