aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Controller/ConfigController.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-11-11 18:27:04 +0100
committerGitHub <noreply@github.com>2016-11-11 18:27:04 +0100
commit8315507384c5cbc26d6f73729aeb97395e3e55fa (patch)
treef9f4fe3f11b792d8800c2cab79cf5daaed263002 /src/Wallabag/CoreBundle/Controller/ConfigController.php
parent5cf96040048452c60fbbbf6455426fdde414bf9e (diff)
parentece4718f63078acf6d4ac1e68e47f088569add84 (diff)
downloadwallabag-8315507384c5cbc26d6f73729aeb97395e3e55fa.tar.gz
wallabag-8315507384c5cbc26d6f73729aeb97395e3e55fa.tar.zst
wallabag-8315507384c5cbc26d6f73729aeb97395e3e55fa.zip
Merge pull request #2571 from wallabag/change-language-without-logout
Changed behavior when we change language
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller/ConfigController.php')
-rw-r--r--src/Wallabag/CoreBundle/Controller/ConfigController.php2
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());