1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-06-27 16:36:00 +00:00

Changed behavior when we change language

No need to disconnect to apply the language substitution
This commit is contained in:
Nicolas Lœuillet 2016-11-10 20:54:20 +01:00
parent 5cf9604004
commit ece4718f63
No known key found for this signature in database
GPG key ID: BDC1EFB5CA0145F2
13 changed files with 14 additions and 12 deletions

View file

@ -38,6 +38,8 @@ class ConfigController extends Controller
$em->persist($config);
$em->flush();
$request->getSession()->set('_locale', $config->getLanguage());
// switch active theme
$activeTheme = $this->get('liip_theme.active_theme');
$activeTheme->setName($config->getTheme());