mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-19 16:49:34 +00:00
Do not use the wrong language for trees when no user is logged in
This commit is contained in:
parent
cd7dbd5f7b
commit
d0b827c2c3
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ class UserCacheKeyGenerator
|
|||
//If the user is null, then treat it as anonymous user.
|
||||
//When the anonymous user is passed as user then use this path too.
|
||||
if (!($user instanceof User) || User::ID_ANONYMOUS === $user->getID()) {
|
||||
return 'user$_'.User::ID_ANONYMOUS;
|
||||
return 'user$_'.User::ID_ANONYMOUS . '_'.$locale;
|
||||
}
|
||||
|
||||
//Use the unique user id and the locale to generate the key
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue