explorer de fichier

This commit is contained in:
afornerot 2020-09-16 09:46:48 +02:00
parent 2aff9d641b
commit 936b6810b0
1 changed files with 2 additions and 3 deletions

View File

@ -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