diff --git a/application/controllers/UserController.php b/application/controllers/UserController.php index 4315117cf..c796737cd 100644 --- a/application/controllers/UserController.php +++ b/application/controllers/UserController.php @@ -111,10 +111,6 @@ class UserController extends Zend_Controller_Action } } - //récupération la valeur de la langue de la bdd - $reponse = $ws->getInfosLogin($login, $_SERVER['REMOTE_ADDR']); - $this->view->assign('lang', $reponse->result->lang); - //Liste des catégories des accès $reponse = $ws->getCategory(); $wscategory = $reponse->item; diff --git a/application/views/default/scripts/user/index.phtml b/application/views/default/scripts/user/index.phtml index 162a48b5f..b7d45e3cb 100644 --- a/application/views/default/scripts/user/index.phtml +++ b/application/views/default/scripts/user/index.phtml @@ -10,9 +10,7 @@
-
- @@ -96,7 +94,7 @@ $lngOpts = array('fr' => 'Français', 'en' => 'English'); foreach($lngOpts as $lngKey => $lngVal) { $selected = ''; - if($lngKey == $this->lang) $selected = 'selected'; + if($lngKey == $this->options->lang) $selected = 'selected'; ?>