mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 22:31:59 +01:00
languages fix
This commit is contained in:
parent
d68ffad8a6
commit
9739809347
@ -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();
|
||||
|
@ -74,6 +74,7 @@ function logout() {
|
||||
|
||||
Registry::set('username', '');
|
||||
|
||||
session_destroy();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user