diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Controller/FileController.php b/src/ninegate-1.0/src/Cadoles/CoreBundle/Controller/FileController.php index 2cba35a8..b6c9029a 100644 --- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Controller/FileController.php +++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Controller/FileController.php @@ -48,10 +48,9 @@ class FileController extends Controller // Récupérer en session le mode de visualisation $sessionviewdirectory = $this->get('session')->get('sessionviewdirectory'); if(!is_array($sessionviewdirectory)) $sessionviewdirectory=[$directory=>$defaultview]; - if($view) { + if($view) $sessionviewdirectory[$directory] = $view; - $this->get('session')->set('sessionviewdirectory',$sessionviewdirectory); - } + $this->get('session')->set('sessionviewdirectory',$sessionviewdirectory); // Construire le chemin réel