mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 05:44:36 +02:00
Auth: Reload entire layout if the locale changes
This commit is contained in:
parent
04b906bff5
commit
a87f15c861
@ -111,6 +111,13 @@ class Auth
|
||||
}
|
||||
}
|
||||
|
||||
// Reload entire layout if the locale changed
|
||||
if (($locale = $user->getPreferences()->getValue('icingaweb', 'language')) !== null) {
|
||||
if (setlocale(LC_ALL, 0) !== $locale && $this->getRequest()->isXmlHttpRequest()) {
|
||||
$this->getResponse()->setHeader('X-Icinga-Redirect-Http', 'yes');
|
||||
}
|
||||
}
|
||||
|
||||
$this->user = $user;
|
||||
if ($persist) {
|
||||
$this->persistCurrentUser();
|
||||
|
Loading…
x
Reference in New Issue
Block a user