Skip to content
Snippets Groups Projects
Commit 3b034a9f authored by Sebastian Kehr's avatar Sebastian Kehr :rowboat_tone2: Committed by Dorian Merz
Browse files

refs #15530 [fid] cache libraries w.r.t. current locale

parent 8dc95d01
No related merge requests found
...@@ -424,7 +424,7 @@ class Client ...@@ -424,7 +424,7 @@ class Client
*/ */
public function requestLibraryList(): array public function requestLibraryList(): array
{ {
if ($list = $this->session['libraries'] ?? null) { if ($list = $this->session['libraries'][$this->locale] ?? null) {
return $list; return $list;
} }
...@@ -442,7 +442,8 @@ class Client ...@@ -442,7 +442,8 @@ class Client
return $libary->getId(); return $libary->getId();
}, $list); }, $list);
return $this->session['libraries'] = array_combine($keys, $list); return $this->session['libraries'][$this->locale] = array_combine($keys,
$list);
} }
/** /**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment