forked from wallabag/wallabag
Changed behavior when we change language
No need to disconnect to apply the language substitution
This commit is contained in:
@ -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());
|
||||
|
||||
Reference in New Issue
Block a user