mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-11-09 15:02:31 +01:00
feature #392, bug fixed on footer link
Use auth_key in mail cache key to avoid using the auth key of the first user.
This commit is contained in:
1 parent
c42f15dfa8
commit
426e10e235
1 file changed
+4
@@ -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]))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user