forked from ZwiiCMS-Team/ZwiiCampus
1.4.22 le lien RFM de la barre ouvre le dossier de l'espace ou celui de tous les dossiers en mode home.
This commit is contained in:
parent
21afc43656
commit
ef371092a0
13
core/vendor/filemanager/config/config.php
vendored
13
core/vendor/filemanager/config/config.php
vendored
@ -45,8 +45,16 @@ if (!is_null($u) && !is_null($g) && !is_null($userId)) {
|
||||
$folder['delete'] = true;
|
||||
$folder['copycut'] = true;
|
||||
$folder['chmod'] = true;
|
||||
$uploadDir = '/site/file/source/';
|
||||
$currentPath = '../../../site/file/source/';
|
||||
// Pointe vers le dossier du cours
|
||||
if (
|
||||
isset($courseId)
|
||||
&& $courseId != 'home'
|
||||
) {
|
||||
$uploadDir = './site/file/source/' . $courseId . '/';
|
||||
} else {
|
||||
$uploadDir = '/site/file/source/';
|
||||
}
|
||||
$currentPath = '../../../' . $uploadDir;
|
||||
break;
|
||||
case 2:
|
||||
case 1:
|
||||
@ -69,7 +77,6 @@ if (!is_null($u) && !is_null($g) && !is_null($userId)) {
|
||||
} else {
|
||||
$uploadDir = $g['profil'][$group][$profil]['folder']['path'];
|
||||
}
|
||||
|
||||
$currentPath = '../../../' . $uploadDir;
|
||||
if (!is_dir($currentPath)) {
|
||||
mkdir($currentPath);
|
||||
|
Loading…
Reference in New Issue
Block a user