Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

fix(pendo): correctly set locale when language is detection by browser #11484

Merged
merged 3 commits into from
Aug 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions www/api/class/centreon_ceip.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ private function getServerType(): array
*/
private function getVisitorInformation(): array
{
$locale = $this->user->lang === 'browser'
? null
: $this->user->lang;
$locale = $this->user->get_lang();

$role = $this->user->admin
? "admin"
Expand Down