what year is it

This commit is contained in:
Jeremy Kauffman 2020-02-07 15:50:41 -05:00 committed by Jeremy Kauffman
parent b96382b693
commit 4faebd6d4c

View file

@ -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', [