From 6bc5dbe70f8105898c7937d63a1217cdc7db85cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20S=C3=BC=C3=9Fenguth?= Date: Fri, 13 Aug 2021 12:13:19 +0200 Subject: [PATCH] Added username to error template, Rearranged error messages --- error.php | 1 + misc/smarty/templates_en/error.tpl | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/error.php b/error.php index 9a19889..521ea3a 100644 --- a/error.php +++ b/error.php @@ -7,6 +7,7 @@ unset($_SESSION["error_code"]); $smarty->assign("headline", $headline); $smarty->assign("web_url", $web_url); +$smarty->assign("username", $_SESSION["username"]); $smarty->assign("error_code", $error_code); $smarty->display("error.tpl"); diff --git a/misc/smarty/templates_en/error.tpl b/misc/smarty/templates_en/error.tpl index 9a80591..3998f8b 100644 --- a/misc/smarty/templates_en/error.tpl +++ b/misc/smarty/templates_en/error.tpl @@ -13,6 +13,7 @@
+ {if $error_code == 1} Domain can contain only english letters, dots, hyphens and digits. {elseif $error_code == 2} @@ -38,7 +39,8 @@ {else} Unknown error. {/if} + +

Hit "Back" in your browser to return to where you came from. This should normally preserve your changes.

-

Hit "Back" in your browser to return to where you came from. This should normally preserve your changes.