From df7c82c5712daeccf850f9f2398cb7af2a1933ca Mon Sep 17 00:00:00 2001 From: slawkens Date: Wed, 19 Jul 2023 11:57:26 +0200 Subject: [PATCH 1/2] Fix highscores if there is only 1 record --- system/pages/highscores.php | 1 - system/templates/highscores.html.twig | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/system/pages/highscores.php b/system/pages/highscores.php index 95647893..dd2efa7b 100644 --- a/system/pages/highscores.php +++ b/system/pages/highscores.php @@ -311,7 +311,6 @@ if(config('highscores_balance')) /** @var Twig\Environment $twig */ $twig->display('highscores.html.twig', [ 'highscores' => $highscores, - 'totalRows' => $i - 1, 'list' => $list, 'skill' => $skill, 'skillName' => ($skill == SKILL_FRAGS ? 'Frags' : ($skill == SKILL_BALANCE ? 'Balance' : getSkillName($skill))), diff --git a/system/templates/highscores.html.twig b/system/templates/highscores.html.twig index 3b9224e2..2e32b7de 100644 --- a/system/templates/highscores.html.twig +++ b/system/templates/highscores.html.twig @@ -48,7 +48,7 @@ {% endif %} - {% if totalRows < 1 %} + {% if highscores|length < 1 %} No records yet. {% else %} {% set row = 0 %} From 848c5c08878cd280f64f42f34b3bab19251c2d92 Mon Sep 17 00:00:00 2001 From: slawkens Date: Fri, 21 Jul 2023 11:58:18 +0200 Subject: [PATCH 2/2] Change default timezone --- system/templates/install.config.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/templates/install.config.html.twig b/system/templates/install.config.html.twig index b25f9dbf..0776d540 100644 --- a/system/templates/install.config.html.twig +++ b/system/templates/install.config.html.twig @@ -21,7 +21,7 @@ {{ locale.step_config_timezone_desc }}