diff --git a/core/module/install/ressource/defaultdata.php b/core/module/install/ressource/defaultdata.php index e7e466f..2b5c268 100644 --- a/core/module/install/ressource/defaultdata.php +++ b/core/module/install/ressource/defaultdata.php @@ -458,7 +458,7 @@ class init extends common 'copycut' => false, 'chmod' => false, 'share' => true, - 'coursePath' => 'none', + 'coursePath' => '', 'homePath' => '/site/file/source/partage/' ], 'page' => [ @@ -555,7 +555,7 @@ class init extends common 'copycut' => true, 'chmod' => true, 'share' => true, - 'coursePath' => 'none', + 'coursePath' => '', 'homePath' => '/site/file/source/partage/' ], 'page' => [ diff --git a/core/module/user/user.php b/core/module/user/user.php index 2f3550a..2b121ba 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -769,7 +769,7 @@ class user extends common self::$sharePath = array_flip(self::$sharePath); self::$sharePath = array_merge(['none' => 'Aucun Accès'], self::$sharePath); - self::$sharePath = array_merge(['course' => 'Confiné dans le dossier de l\'espace ouvert'], self::$sharePath); + self::$sharePath = array_merge(['' => 'Confiné dans le dossier de l\'espace ouvert'], self::$sharePath); self::$sharePath = array_merge(['/site/file/source/' => 'Tout le gestionnaire de fichiers'], self::$sharePath); // Liste des modules installés @@ -971,7 +971,7 @@ class user extends common self::$sharePath = array_flip(self::$sharePath); self::$sharePath = array_merge(['none' => 'Aucun Accès'], self::$sharePath); - self::$sharePath = array_merge(['course' => 'Confiné dans le dossier de l\'espace ouvert'], self::$sharePath); + self::$sharePath = array_merge(['' => 'Confiné dans le dossier de l\'espace ouvert'], self::$sharePath); self::$sharePath = array_merge(['./site/file/source/' => 'Tout le gestionnaire de fichiers'], self::$sharePath); // Liste des modules installés diff --git a/core/vendor/filemanager/config/config.php b/core/vendor/filemanager/config/config.php index bb4a781..75deb8a 100644 --- a/core/vendor/filemanager/config/config.php +++ b/core/vendor/filemanager/config/config.php @@ -75,7 +75,7 @@ if (!is_null($u) && !is_null($g) && !is_null($userId)) { } // Un dossier renvoie vers le dossier confiné - $uploadDir = $sharedPath === 'course' ? '/site/file/source/' . $courseId . '/' : $sharedPath; + $uploadDir = $sharedPath === '' ? '/site/file/source/' . $courseId . '/' : $sharedPath; $currentPath = '../../../' . $uploadDir;