mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-23 17:10:53 +01:00
[ticket/15620] Use separate local avatar cache file for every lang
PHPBB3-15620
This commit is contained in:
parent
02cbb864a5
commit
4544f5212c
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user