mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:20:11 +01:00
languages fix
This commit is contained in:
parent
d68ffad8a6
commit
9739809347
@ -11,6 +11,7 @@ class Language {
|
|||||||
|
|
||||||
if(isset($_SESSION['lang'])) {
|
if(isset($_SESSION['lang'])) {
|
||||||
$file = DIR_LANGUAGE . $_SESSION['lang'] . '/messages.php';
|
$file = DIR_LANGUAGE . $_SESSION['lang'] . '/messages.php';
|
||||||
|
define('LANG', $_SESSION['lang']);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$pref_langs = $this->get_preferred_languages();
|
$pref_langs = $this->get_preferred_languages();
|
||||||
|
@ -74,6 +74,7 @@ function logout() {
|
|||||||
|
|
||||||
Registry::set('username', '');
|
Registry::set('username', '');
|
||||||
|
|
||||||
|
session_destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user