mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-25 18:13:28 +01:00
Merge branch '3.2.x'
* 3.2.x: [ticket/15620] Use separate local avatar cache file for every lang
This commit is contained in:
commit
001604df0c
@ -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