issue #0001547 : Use method getLang from class Utilisateur

This commit is contained in:
Michael RICOIS 2013-05-13 14:09:14 +00:00
parent d2d043f7c1
commit 3a8d708551

View File

@ -40,9 +40,8 @@ class UserController extends Zend_Controller_Action
$InfosLogin->result->timeout : 1800;
$identity->time = time() + $identity->timeout;
$identity->modeEdition = false;
$identity->acceptationCGU = $InfosLogin->result->acceptationCGU;
$lang = in_array($InfosLogin->result->lang,array('fr','en')) ? $InfosLogin->result->lang : 'fr';
$identity->lang = $lang;
$identity->acceptationCGU = $InfosLogin->result->acceptationCGU;
$identity->lang = $utilisateur->getLang();
$identity->browser = $utilisateur->getBrowserInfo();
return $identity;
}