mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-03 03:52:54 +02: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:
@@ -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