diff --git a/webui/system/language.php b/webui/system/language.php index cf144099..e52443cd 100644 --- a/webui/system/language.php +++ b/webui/system/language.php @@ -11,6 +11,7 @@ class Language { if(isset($_SESSION['lang'])) { $file = DIR_LANGUAGE . $_SESSION['lang'] . '/messages.php'; + define('LANG', $_SESSION['lang']); } else { $pref_langs = $this->get_preferred_languages(); diff --git a/webui/system/misc.php b/webui/system/misc.php index b72c4b20..b27721c0 100644 --- a/webui/system/misc.php +++ b/webui/system/misc.php @@ -74,6 +74,7 @@ function logout() { Registry::set('username', ''); + session_destroy(); }