'course' devient ''

This commit is contained in:
Fred Tempez 2024-03-05 18:21:54 +01:00
parent db0637ca1c
commit 0535556b68
3 changed files with 5 additions and 5 deletions

View File

@ -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' => [

View File

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

View File

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