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
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());