From ed89b99cd156d60b4e54dd399e8f690f11dab3db Mon Sep 17 00:00:00 2001 From: slawkens Date: Sun, 9 Feb 2025 01:29:32 +0100 Subject: [PATCH] Addition to previous commit, allow list types with spaces --- system/pages/highscores.php | 2 +- system/templates/highscores.html.twig | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/system/pages/highscores.php b/system/pages/highscores.php index 7290673e..91ba2e2b 100644 --- a/system/pages/highscores.php +++ b/system/pages/highscores.php @@ -21,7 +21,7 @@ $settingHighscoresCountryBox = setting('core.highscores_country_box'); if(config('account_country') && $settingHighscoresCountryBox) require SYSTEM . 'countries.conf.php'; -$list = $_GET['list'] ?? 'experience'; +$list = urldecode($_GET['list'] ?? 'experience'); $page = $_GET['page'] ?? 1; $vocation = urldecode($_GET['vocation'] ?? 'all'); diff --git a/system/templates/highscores.html.twig b/system/templates/highscores.html.twig index 71d2d26c..86599b90 100644 --- a/system/templates/highscores.html.twig +++ b/system/templates/highscores.html.twig @@ -10,16 +10,16 @@ @@ -103,7 +103,7 @@ {% for link, name in types %} - {{ name }}
+ {{ name }}
{% endfor %} @@ -116,9 +116,9 @@ - [ALL]
+ [ALL]
{% for i in 0..config.vocations_amount %} - {{ config.vocations[i]}}
+ {{ config.vocations[i]}}
{% endfor %}