Change feed title

This commit is contained in:
Kirill Kotikov 2020-03-24 19:07:23 +03:00 committed by GitHub
parent 0fd7021030
commit f2de5aecc7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@ class GithubTrendingBridge extends BridgeAbstract {
const NAME = 'Github Trending'; const NAME = 'Github Trending';
const URI = 'https://github.com/trending'; const URI = 'https://github.com/trending';
const URI_ITEM = 'https://github.com'; const URI_ITEM = 'https://github.com';
const CACHE_TIMEOUT = 86400; // 24hr (minimum since daily) const CACHE_TIMEOUT = 43200; // 12hr
const DESCRIPTION = 'See what the GitHub community is most excited repos.'; const DESCRIPTION = 'See what the GitHub community is most excited repos.';
const PARAMETERS = array( const PARAMETERS = array(
'By language' => array( 'By language' => array(
@ -626,9 +626,9 @@ class GithubTrendingBridge extends BridgeAbstract {
public function getName(){ public function getName(){
if($this->getInput('language') == '') { if($this->getInput('language') == '') {
return self::NAME . ' - all'; return self::NAME . ': All';
} elseif (!is_null($this->getInput('language'))) { } elseif (!is_null($this->getInput('language'))) {
return self::NAME . ' - ' . $this->getInput('language'); return self::NAME . ': ' . ucfirst($this->getInput('language'));
} }
return parent::getName(); return parent::getName();