From f1914f122efe57bd8434fb4e024da92582d1b095 Mon Sep 17 00:00:00 2001 From: rub Date: Fri, 16 Mar 2007 22:52:52 +0000 Subject: Send email on pwg group: o Best mail content o Add a text area in order to complete email git-svn-id: http://piwigo.org/svn/trunk@1916 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/cat_modify.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'admin') diff --git a/admin/cat_modify.php b/admin/cat_modify.php index 6eccb305d..fd6588c97 100644 --- a/admin/cat_modify.php +++ b/admin/cat_modify.php @@ -283,6 +283,8 @@ $template->assign_vars( ) ), + 'MAIL_CONTENT' => empty($_POST['mail_content']) + ? '' : stripslashes($_POST['mail_content']), 'U_CHILDREN' => $cat_list_url.'&parent_id='.$category['id'], 'U_HELP' => PHPWG_ROOT_PATH.'popuphelp.php?page=cat_modify', @@ -565,12 +567,14 @@ SELECT id, file, path, tn_ext pwg_mail_group( $_POST['group'], get_str_email_format(true), /* TODO add a checkbox in order to choose format*/ - get_l10n_args('Come to visit %s', $category['name']), + get_l10n_args('[%s] Come to visit the category %s', + array($conf['gallery_title'], $category['name'])), 'admin', 'cat_group_info', array ( 'IMG_URL' => $img_url, + 'CAT_NAME' => $category['name'], 'LINK' => make_index_url( array( 'category' => array( @@ -578,7 +582,8 @@ SELECT id, file, path, tn_ext 'name' => $category['name'], 'permalink' => $category['permalink'] ))), - 'CPL_CONTENT' => '' /* TODO Add text area to add complementary content */ + 'CPL_CONTENT' => empty($_POST['mail_content']) + ? '' : stripslashes($_POST['mail_content']) ), '' /* TODO Add listbox in order to choose Language selected */); -- cgit v1.2.3