mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 01:32:59 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user