diff options
author | rub <rub@piwigo.org> | 2007-03-16 22:52:52 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2007-03-16 22:52:52 +0000 |
commit | f1914f122efe57bd8434fb4e024da92582d1b095 (patch) | |
tree | 13e5767e084ef5e3ac92a4957ea281255ade9947 /admin/cat_modify.php | |
parent | 1a3660405a6856bca55932900e18edd5b5e6d20b (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | admin/cat_modify.php | 9 |
1 files changed, 7 insertions, 2 deletions
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 */); |