Skip to content

Commit

Permalink
Merge pull request phpbb#5254 from senky/ticket/15620
Browse files Browse the repository at this point in the history
[ticket/15620] Use separate local avatar cache file for every lang

* github.com:/phpbb/phpbb:
  [ticket/15620] Use separate local avatar cache file for every lang
  • Loading branch information
Nicofuma committed Jul 8, 2018
2 parents e7a1e16 + 4544f52 commit bdd384a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phpBB/phpbb/avatar/driver/local.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public function get_template_name()
*/
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)
{
Expand Down Expand Up @@ -198,7 +198,7 @@ protected function get_avatar_list($user)

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);
}
}

Expand Down

0 comments on commit bdd384a

Please sign in to comment.