languages fix

This commit is contained in:
SJ 2012-09-21 20:26:49 +02:00
parent d68ffad8a6
commit 9739809347
2 changed files with 2 additions and 0 deletions

View File

@ -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();

View File

@ -74,6 +74,7 @@ function logout() {
Registry::set('username', '');
session_destroy();
}