Fix wrong variable assignment causing preferred languages not being set

This commit is contained in:
Johannes Meyer 2014-07-16 15:17:14 +02:00
parent f1d7cd8b50
commit eb977b7a55
1 changed files with 1 additions and 1 deletions

View File

@ -322,7 +322,7 @@ class Web extends ApplicationBootstrap
{
parent::setupInternationalization();
if ($this->user !== null && $this->user->getPreferences() !== null
&& ($locale = $this->user->getPreferences()->get('app.language') !== null)
&& (($locale = $this->user->getPreferences()->get('app.language')) !== null)
) {
try {
Translator::setupLocale($locale);