diff options
Diffstat (limited to 'inc/poche/Poche.class.php')
-rwxr-xr-x | inc/poche/Poche.class.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 09a9f5ff..2b0c3bf8 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php | |||
@@ -877,6 +877,14 @@ class Poche | |||
877 | $longlastingsession = isset($_POST['longlastingsession']); | 877 | $longlastingsession = isset($_POST['longlastingsession']); |
878 | $passwordTest = ($isauthenticated) ? $user['password'] : Tools::encodeString($password . $login); | 878 | $passwordTest = ($isauthenticated) ? $user['password'] : Tools::encodeString($password . $login); |
879 | Session::login($user['username'], $user['password'], $login, $passwordTest, $longlastingsession, array('poche_user' => new User($user))); | 879 | Session::login($user['username'], $user['password'], $login, $passwordTest, $longlastingsession, array('poche_user' => new User($user))); |
880 | |||
881 | # reload l10n | ||
882 | $language = $user['config']['language']; | ||
883 | @putenv('LC_ALL=' . $language); | ||
884 | setlocale(LC_ALL, $language); | ||
885 | bindtextdomain($language, LOCALE); | ||
886 | textdomain($language); | ||
887 | |||
880 | $this->messages->add('s', _('welcome to your wallabag')); | 888 | $this->messages->add('s', _('welcome to your wallabag')); |
881 | Tools::logm('login successful'); | 889 | Tools::logm('login successful'); |
882 | Tools::redirect($referer); | 890 | Tools::redirect($referer); |