From 4faebd6d4c7a815483a892f270c3e808d3d2c7df Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Fri, 7 Feb 2020 15:50:41 -0500 Subject: [PATCH] what year is it --- controller/action/ContentActions.class.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/controller/action/ContentActions.class.php b/controller/action/ContentActions.class.php index d415cc3a..37b40447 100644 --- a/controller/action/ContentActions.class.php +++ b/controller/action/ContentActions.class.php @@ -95,7 +95,7 @@ class ContentActions extends Actions 'tutorial' => 'LBRY Tutorials', 'publisher' => 'Publishers and Creators', 'troubleshooting' => 'Help and Troubleshooting', - 'powerusers' => 'LBRY for Power Users', + 'powerusers' => 'LBRY for Power Users', 'wallet' => 'Wallet and Transactions', 'bots' => 'LBRY Bots', 'mining' => 'Mining LBC', @@ -165,13 +165,14 @@ class ContentActions extends Actions 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'); $years = range(2019, 2020); + $year = $year ?: $years[count($years) - 1]; if (!in_array($year, $years)) { - Controller::redirect('/roadmap'); + Controller::redirect('/roadmap'); } return ['content/roadmap', [