diff options
author | Tristan Darricau <tristan.darricau@gmail.com> | 2018-07-08 18:40:22 +0200 |
---|---|---|
committer | Tristan Darricau <tristan.darricau@gmail.com> | 2018-07-08 18:40:22 +0200 |
commit | bdd384aa37ed156ae077aff1640bee04be56bd93 (patch) | |
tree | 1e599972ba234edb1f0e1150ad17056a16023cd9 | |
parent | e7a1e16bc578564d5b00dde0b9e96c7485115ff4 (diff) | |
parent | 4544f5212c14b12d372686d6e09caefb90b026e2 (diff) | |
download | forums-bdd384aa37ed156ae077aff1640bee04be56bd93.tar forums-bdd384aa37ed156ae077aff1640bee04be56bd93.tar.gz forums-bdd384aa37ed156ae077aff1640bee04be56bd93.tar.bz2 forums-bdd384aa37ed156ae077aff1640bee04be56bd93.tar.xz forums-bdd384aa37ed156ae077aff1640bee04be56bd93.zip |
Merge pull request #5254 from senky/ticket/15620
[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
-rw-r--r-- | phpBB/phpbb/avatar/driver/local.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/avatar/driver/local.php b/phpBB/phpbb/avatar/driver/local.php index 8b773017c5..4b84e4201c 100644 --- a/phpBB/phpbb/avatar/driver/local.php +++ b/phpBB/phpbb/avatar/driver/local.php @@ -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); } } |