aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_mail.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2016-01-06 14:29:32 +0100
committerplegall <plg@piwigo.org>2016-01-06 14:29:32 +0100
commitc42f15dfa816912a1b09ec2a71e5ed0b39ff0d86 (patch)
tree04104d3d516e66e614b96325af2b8674ec4ea23a /include/functions_mail.inc.php
parent67e142f33197af955e179a1ad09b990ac80b6698 (diff)
add auth_key in mail footer for pwg_mail_group
Diffstat (limited to 'include/functions_mail.inc.php')
-rw-r--r--include/functions_mail.inc.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/functions_mail.inc.php b/include/functions_mail.inc.php
index 01a65091b..cf982bcf3 100644
--- a/include/functions_mail.inc.php
+++ b/include/functions_mail.inc.php
@@ -555,7 +555,13 @@ SELECT
}
}
- $return &= pwg_mail($u['email'], $args, $user_tpl);
+ $user_args = $args;
+ if ($authkey !== false)
+ {
+ $user_args['auth_key'] = $authkey['auth_key'];
+ }
+
+ $return &= pwg_mail($u['email'], $user_args, $user_tpl);
}
switch_lang_back();