From f011755a63dc86915d23fb996c7087c37ae28974 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20S=C3=BC=C3=9Fenguth?= Date: Fri, 13 Aug 2021 12:01:05 +0200 Subject: [PATCH] Added clickable web_url to the headline, Fixed missing headline in error template --- edit_list.php | 1 + error.php | 3 +++ index.php | 1 + login.php | 1 + misc/smarty/templates_en/edit_list.tpl | 2 +- misc/smarty/templates_en/error.tpl | 4 +++- misc/smarty/templates_en/index.tpl | 2 +- misc/smarty/templates_en/login.tpl | 4 +++- 8 files changed, 14 insertions(+), 4 deletions(-) diff --git a/edit_list.php b/edit_list.php index 18ab614..b607393 100644 --- a/edit_list.php +++ b/edit_list.php @@ -72,6 +72,7 @@ $prefix = trim($prefix); // Load page $smarty->assign("headline", $headline); +$smarty->assign("web_url", $web_url); $smarty->assign("subscribers", $subscribers); $smarty->assign("list_name", $list_name); $smarty->assign("domain", $domain); diff --git a/error.php b/error.php index 93d4a66..9a19889 100644 --- a/error.php +++ b/error.php @@ -4,6 +4,9 @@ require("init.php"); $error_code = isset($_SESSION["error_code"]) ? $_SESSION["error_code"] : ""; unset($_SESSION["error_code"]); + +$smarty->assign("headline", $headline); +$smarty->assign("web_url", $web_url); $smarty->assign("error_code", $error_code); $smarty->display("error.tpl"); diff --git a/index.php b/index.php index c2ad8b4..c256802 100644 --- a/index.php +++ b/index.php @@ -45,6 +45,7 @@ else } $smarty->assign("headline", $headline); +$smarty->assign("web_url", $web_url); $smarty->assign("lists", $lists_new); $smarty->assign("domain", $domain); $smarty->assign("username", $_SESSION["username"]); diff --git a/login.php b/login.php index 7fa2aae..d37af9c 100644 --- a/login.php +++ b/login.php @@ -72,6 +72,7 @@ else { // If no submission, display login form $smarty->assign("headline", $headline); + $smarty->assign("web_url", $web_url); $smarty->display("login.tpl"); } diff --git a/misc/smarty/templates_en/edit_list.tpl b/misc/smarty/templates_en/edit_list.tpl index ff71a7f..95c8a4c 100644 --- a/misc/smarty/templates_en/edit_list.tpl +++ b/misc/smarty/templates_en/edit_list.tpl @@ -46,7 +46,7 @@