From 6fac883659f581baac1361826d046410156f1e58 Mon Sep 17 00:00:00 2001 From: slawkens <slawkens@gmail.com> Date: Sun, 16 Mar 2025 12:39:07 +0100 Subject: [PATCH] Replace links with from accountmanagement to account/manage --- system/pages/polls.php | 2 +- system/templates/guilds.list.html.twig | 2 +- system/templates/guilds.view.html.twig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/system/pages/polls.php b/system/pages/polls.php index 37372f25..1d334053 100644 --- a/system/pages/polls.php +++ b/system/pages/polls.php @@ -100,7 +100,7 @@ function getColorByPercent($percent) if(!$logged) { - echo 'You are not logged in. <a href="?subtopic=accountmanagement&redirect=' . BASE_URL . urlencode('?subtopic=polls') . '">Log in</a> to vote in polls.<br /><br />'; + echo 'You are not logged in. <a href="' . getLink('account/manage') . '?redirect=' . BASE_URL . urlencode('?subtopic=polls') . '">Log in</a> to vote in polls.<br /><br />'; return; } diff --git a/system/templates/guilds.list.html.twig b/system/templates/guilds.list.html.twig index 80f170a0..7a4a7c86 100644 --- a/system/templates/guilds.list.html.twig +++ b/system/templates/guilds.list.html.twig @@ -114,7 +114,7 @@ {% else %} <b>Before you can create a guild you must login.</b> <br/> - <form action="?subtopic=accountmanagement&redirect={{ getLink('guilds') }}" method="post"> + <form action="{{ getLink('account/manage') }}?redirect={{ getLink('guilds') }}" method="post"> {{ csrf() }} {% include('buttons.login.html.twig') %} </form> diff --git a/system/templates/guilds.view.html.twig b/system/templates/guilds.view.html.twig index 695d7464..a25d9570 100644 --- a/system/templates/guilds.view.html.twig +++ b/system/templates/guilds.view.html.twig @@ -215,7 +215,7 @@ <tbody> <tr> {% if not logged %} - <form action="?subtopic=accountmanagement&redirect={{ getGuildLink(guild_name|url_encode, false) }}" method="post"> + <form action="{{ getLink('account/manage') }}?redirect={{ getGuildLink(guild_name|url_encode, false) }}" method="post"> {{ csrf() }} <td> {{ include('buttons.login.html.twig') }}