mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00: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
1 changed files with 2 additions and 2 deletions
|
@ -158,7 +158,7 @@ class local extends \phpbb\avatar\driver\driver
|
||||||
*/
|
*/
|
||||||
protected function get_avatar_list($user)
|
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)
|
if ($avatar_list === false)
|
||||||
{
|
{
|
||||||
|
@ -198,7 +198,7 @@ class local extends \phpbb\avatar\driver\driver
|
||||||
|
|
||||||
if ($this->cache != null)
|
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…
Add table
Reference in a new issue