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['delete'] = true;
|
||||||
$folder['copycut'] = true;
|
$folder['copycut'] = true;
|
||||||
$folder['chmod'] = true;
|
$folder['chmod'] = true;
|
||||||
$uploadDir = '/site/file/source/';
|
// Pointe vers le dossier du cours
|
||||||
$currentPath = '../../../site/file/source/';
|
if (
|
||||||
|
isset($courseId)
|
||||||
|
&& $courseId != 'home'
|
||||||
|
) {
|
||||||
|
$uploadDir = './site/file/source/' . $courseId . '/';
|
||||||
|
} else {
|
||||||
|
$uploadDir = '/site/file/source/';
|
||||||
|
}
|
||||||
|
$currentPath = '../../../' . $uploadDir;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
case 1:
|
case 1:
|
||||||
@ -69,7 +77,6 @@ if (!is_null($u) && !is_null($g) && !is_null($userId)) {
|
|||||||
} else {
|
} else {
|
||||||
$uploadDir = $g['profil'][$group][$profil]['folder']['path'];
|
$uploadDir = $g['profil'][$group][$profil]['folder']['path'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$currentPath = '../../../' . $uploadDir;
|
$currentPath = '../../../' . $uploadDir;
|
||||||
if (!is_dir($currentPath)) {
|
if (!is_dir($currentPath)) {
|
||||||
mkdir($currentPath);
|
mkdir($currentPath);
|
||||||
|
Loading…
Reference in New Issue
Block a user