mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
what year is it
This commit is contained in:
parent
b96382b693
commit
4faebd6d4c
1 changed files with 4 additions and 3 deletions
|
@ -95,7 +95,7 @@ class ContentActions extends Actions
|
||||||
'tutorial' => 'LBRY Tutorials',
|
'tutorial' => 'LBRY Tutorials',
|
||||||
'publisher' => 'Publishers and Creators',
|
'publisher' => 'Publishers and Creators',
|
||||||
'troubleshooting' => 'Help and Troubleshooting',
|
'troubleshooting' => 'Help and Troubleshooting',
|
||||||
'powerusers' => 'LBRY for Power Users',
|
'powerusers' => 'LBRY for Power Users',
|
||||||
'wallet' => 'Wallet and Transactions',
|
'wallet' => 'Wallet and Transactions',
|
||||||
'bots' => 'LBRY Bots',
|
'bots' => 'LBRY Bots',
|
||||||
'mining' => 'Mining LBC',
|
'mining' => 'Mining LBC',
|
||||||
|
@ -165,13 +165,14 @@ class ContentActions extends Actions
|
||||||
return Controller::redirect('https://lbry.tech/contribute');
|
return Controller::redirect('https://lbry.tech/contribute');
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function executeRoadmap(string $year = '2000')
|
public static function executeRoadmap(string $year = '2020')
|
||||||
{
|
{
|
||||||
$cache = !Request::getParam('nocache');
|
$cache = !Request::getParam('nocache');
|
||||||
$years = range(2019, 2020);
|
$years = range(2019, 2020);
|
||||||
|
|
||||||
|
$year = $year ?: $years[count($years) - 1];
|
||||||
if (!in_array($year, $years)) {
|
if (!in_array($year, $years)) {
|
||||||
Controller::redirect('/roadmap');
|
Controller::redirect('/roadmap');
|
||||||
}
|
}
|
||||||
|
|
||||||
return ['content/roadmap', [
|
return ['content/roadmap', [
|
||||||
|
|
Loading…
Add table
Reference in a new issue