1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-30 23:14:28 +02:00

[ticket/15620] Use separate local avatar cache file for every lang

PHPBB3-15620
This commit is contained in:
Jakub Senko
2018-06-18 13:10:19 +02:00
parent 02cbb864a5
commit 4544f5212c

View File

@ -158,7 +158,7 @@ class local extends \phpbb\avatar\driver\driver
*/
protected function get_avatar_list($user)
{
$avatar_list = ($this->cache == null) ? false : $this->cache->get('_avatar_local_list');
$avatar_list = ($this->cache == null) ? false : $this->cache->get('_avatar_local_list_' . $user->data['user_lang']);
if ($avatar_list === false)
{
@ -198,7 +198,7 @@ class local extends \phpbb\avatar\driver\driver
if ($this->cache != null)
{
$this->cache->put('_avatar_local_list', $avatar_list, 86400);
$this->cache->put('_avatar_local_list_' . $user->data['user_lang'], $avatar_list, 86400);
}
}