Change feed title
This commit is contained in:
parent
0fd7021030
commit
f2de5aecc7
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue