diff --git a/edit_list.php b/edit_list.php index eef9ee6..ef494c3 100644 --- a/edit_list.php +++ b/edit_list.php @@ -71,6 +71,20 @@ $prefix = file_get_contents("$lists_path/$domain/$list_name/control/prefix"); // Remove trailing empty symbols $prefix = trim($prefix); +# Check whether there is a listdescription file +if (file_exists("$lists_path/$domain/$list_name/control/listdescription")) +{ + // Get list description + $listdescription = file_get_contents("$lists_path/$domain/$list_name/control/listdescription"); + // Remove trailing empty symbols + $listdescription = trim($listdescription); +} +else +{ + $listdescription = NULL; +} + + // Load page $smarty->assign("headline", $headline); $smarty->assign("web_url", $web_url); @@ -79,6 +93,7 @@ $smarty->assign("list_name", $list_name); $smarty->assign("domain", $domain); $smarty->assign("moderators", $moderators); $smarty->assign("prefix", $prefix); +$smarty->assign("listdescription", $listdescription); $smarty->assign("username", $_SESSION["username"]); $smarty->assign("success", $success); $smarty->display("edit_list.tpl"); diff --git a/misc/smarty/templates_en/edit_list.tpl b/misc/smarty/templates_en/edit_list.tpl index 2e27a96..d004aa0 100644 --- a/misc/smarty/templates_en/edit_list.tpl +++ b/misc/smarty/templates_en/edit_list.tpl @@ -96,6 +96,22 @@ +
|
+
+
+
+
+
+ List description:
+ Can be left blank. + + |
+