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

Commit

Permalink
fix(pendo): correctly set locale when language is detection by browser (
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjaouen authored Aug 5, 2022
1 parent c590fb0 commit 7075fb1
Showing 1 changed file with 1 addition and 3 deletions.
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

0 comments on commit 7075fb1

Please sign in to comment.