Add the last (before 1.8) tabsheet on administration menu (Waiting elements).

Small change way mail function.

git-svn-id: http://piwigo.org/svn/trunk@1915 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rub
2007-03-16 18:49:19 +00:00
parent 8371389182
commit 1a3660405a
12 changed files with 93 additions and 16 deletions
+5 -3
View File
@@ -327,7 +327,8 @@ order by
* - group_id: mail are sent to group with this Id
* - email_format: mail format
* - keyargs_subject: mail subject on l10n_args format
* - tpl_shortname: short template name without extension
* - dirname: short name of directory including template
* - tpl_shortname: short template name without extension
* - assign_vars: array used to assign_vars to mail template
* - language_selected: send mail only to user with this selected language
*
@@ -335,7 +336,8 @@ order by
*/
function pwg_mail_group(
$group_id, $email_format, $keyargs_subject,
$tpl_shortname, $assign_vars = array(), $language_selected = '')
$dirname, $tpl_shortname,
$assign_vars = array(), $language_selected = '')
{
global $conf;
$return = true;
@@ -407,7 +409,7 @@ WHERE
$mail_template = get_mail_template($email_format, $elem);
$mail_template->set_filename($tpl_shortname,
(IN_ADMIN ? 'admin/' : '').$tpl_shortname.'.tpl');
(empty($dirname) ? '' : $dirname.'/').$tpl_shortname.'.tpl');
$mail_template->assign_vars($assign_vars);
$return = pwg_mail