From 936b6810b06fc31a506a0aa7e006cb70c5f9852e Mon Sep 17 00:00:00 2001 From: afornerot Date: Wed, 16 Sep 2020 09:46:48 +0200 Subject: [PATCH] explorer de fichier --- .../src/Cadoles/CoreBundle/Controller/FileController.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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