diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-11-10 20:54:20 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-11-10 20:54:20 +0100 |
commit | ece4718f63078acf6d4ac1e68e47f088569add84 (patch) | |
tree | f9f4fe3f11b792d8800c2cab79cf5daaed263002 /src/Wallabag/CoreBundle/Controller | |
parent | 5cf96040048452c60fbbbf6455426fdde414bf9e (diff) | |
download | wallabag-ece4718f63078acf6d4ac1e68e47f088569add84.tar.gz wallabag-ece4718f63078acf6d4ac1e68e47f088569add84.tar.zst wallabag-ece4718f63078acf6d4ac1e68e47f088569add84.zip |
Changed behavior when we change language
No need to disconnect to apply the language substitution
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/ConfigController.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/ConfigController.php b/src/Wallabag/CoreBundle/Controller/ConfigController.php index 91cdcae5..46fb9503 100644 --- a/src/Wallabag/CoreBundle/Controller/ConfigController.php +++ b/src/Wallabag/CoreBundle/Controller/ConfigController.php | |||
@@ -38,6 +38,8 @@ class ConfigController extends Controller | |||
38 | $em->persist($config); | 38 | $em->persist($config); |
39 | $em->flush(); | 39 | $em->flush(); |
40 | 40 | ||
41 | $request->getSession()->set('_locale', $config->getLanguage()); | ||
42 | |||
41 | // switch active theme | 43 | // switch active theme |
42 | $activeTheme = $this->get('liip_theme.active_theme'); | 44 | $activeTheme = $this->get('liip_theme.active_theme'); |
43 | $activeTheme->setName($config->getTheme()); | 45 | $activeTheme->setName($config->getTheme()); |