diff options
author | plegall <plg@piwigo.org> | 2016-01-06 14:30:05 +0100 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2016-01-06 14:30:05 +0100 |
commit | 426e10e235689211fc52ee0077dce32ea3124bd6 (patch) | |
tree | 4f40812990c2b16cfd268ff03e0f6ea1bc214444 /include/functions_mail.inc.php | |
parent | c42f15dfa816912a1b09ec2a71e5ed0b39ff0d86 (diff) |
feature #392, bug fixed on footer link
Use auth_key in mail cache key to avoid using the auth key of the first user.
Diffstat (limited to '')
-rw-r--r-- | include/functions_mail.inc.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/functions_mail.inc.php b/include/functions_mail.inc.php index cf982bcf3..67be16c15 100644 --- a/include/functions_mail.inc.php +++ b/include/functions_mail.inc.php @@ -718,6 +718,10 @@ function pwg_mail($to, $args=array(), $tpl=array()) { // key compose of indexes witch allow to cache mail data $cache_key = $content_type.'-'.$lang_info['code']; + if (!empty($args['auth_key'])) + { + $cache_key.= '-'.$args['auth_key']; + } if (!isset($conf_mail[$cache_key])) { |