diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-07-22 18:01:27 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-07-22 18:01:27 +0200 |
commit | 9cf6bac1a502d1418834f4f7619d40eb65378c60 (patch) | |
tree | 4c35b756860709e4f52d40fdddaf5384da00d78b | |
parent | 955fc6743871016787e8425425b63cd0f40acaa9 (diff) | |
download | wallabag-9cf6bac1a502d1418834f4f7619d40eb65378c60.tar.gz wallabag-9cf6bac1a502d1418834f4f7619d40eb65378c60.tar.zst wallabag-9cf6bac1a502d1418834f4f7619d40eb65378c60.zip |
fix to display the login successful message with the translation
-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); |