From 5db47fd3a023ef3edd48bc5f8c1802b409e20166 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Kr=C5=A1ka?= Date: Fri, 5 Jul 2024 19:54:43 +0200 Subject: [PATCH] fix dsef --- .../templates/Archive/default.latte | 4 +-- app/RouterFactory.php | 25 ++++++++++++------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/app/Modules/Dsef/DefaultModule/templates/Archive/default.latte b/app/Modules/Dsef/DefaultModule/templates/Archive/default.latte index ec406bb05..68060c758 100644 --- a/app/Modules/Dsef/DefaultModule/templates/Archive/default.latte +++ b/app/Modules/Dsef/DefaultModule/templates/Archive/default.latte @@ -39,9 +39,9 @@ {/if} {* Hack for missing photos *} - {if $eventKey['fykos-year'] == 34} + {if $eventKey['year'] == 34}
- Tento ročník proběhl kvůli pandemii COVID-19 online. + Tento ročník proběhl kvůli pandemii COVID-19 online.
{/if} diff --git a/app/RouterFactory.php b/app/RouterFactory.php index 430adbf59..b1d31394f 100755 --- a/app/RouterFactory.php +++ b/app/RouterFactory.php @@ -166,6 +166,13 @@ public static function createDsefRouter(?array $domainList, array $routerMapping { $router = new RouteList(); + $router->withModule('Default') + ->addRoute('///[/]', [ + 'presenter' => 'Default', + 'action' => 'default', + null => self::useTranslateFilter($domainList, $routerMapping['default']), + ]); + $router->withModule('Archive') ->addRoute('/////[/[]]', [ 'presenter' => 'Default', @@ -194,18 +201,18 @@ public static function createFykosRouter(?array $domainList, array $routerMappin ]); $router->withModule('Default') - ->addRoute('///problems//', [ - 'presenter' => 'Problems', - 'action' => 'default', - null => self::useTranslateFilter($domainList, $routerMapping['default']), - ]); - - $router->addRoute('////[[/]]', [ - 'presenter' => 'Default', + ->addRoute('///problems//', [ + 'presenter' => 'Problems', 'action' => 'default', - null => self::useTranslateFilter($domainList, $routerMapping['events']), + null => self::useTranslateFilter($domainList, $routerMapping['default']), ]); + $router->addRoute('////[[/]]', [ + 'presenter' => 'Default', + 'action' => 'default', + null => self::useTranslateFilter($domainList, $routerMapping['events']), + ]); + $router->withModule('Default') ->addRoute('///[/]', [ 'presenter' => 'Default',