libellés et liste de dossiers
This commit is contained in:
parent
faac5a6c43
commit
cb909e41de
@ -578,7 +578,7 @@ class user extends common
|
||||
|
||||
self::$sharePath = $this->getSubdirectories('./site/file/source');
|
||||
self::$sharePath = array_flip(self::$sharePath);
|
||||
self::$sharePath = array_merge(['./site/file/source/' => 'Accès total'], self::$sharePath);
|
||||
self::$sharePath = array_merge(['./site/file/source/' => 'Tous les dossiers'], self::$sharePath);
|
||||
self::$sharePath = array_merge([null => 'Aucun dossier'], self::$sharePath);
|
||||
|
||||
// Valeurs en sortie;
|
||||
@ -642,7 +642,7 @@ class user extends common
|
||||
|
||||
self::$sharePath = $this->getSubdirectories('./site/file/source');
|
||||
self::$sharePath = array_flip(self::$sharePath);
|
||||
self::$sharePath = array_merge(['./site/file/source/' => 'Accès total'], self::$sharePath);
|
||||
self::$sharePath = array_merge(['./site/file/source/' => 'Tous les dossiers'], self::$sharePath);
|
||||
self::$sharePath = array_merge([null => 'Aucun dossier'], self::$sharePath);
|
||||
|
||||
// Valeurs en sortie;
|
||||
@ -1043,7 +1043,7 @@ class user extends common
|
||||
// Vérifiez si c'est un répertoire
|
||||
if (is_dir($path)) {
|
||||
// Construisez la clé et la valeur pour le tableau associatif
|
||||
$key = $basePath === '' ? $file : $basePath . '/' . $file;
|
||||
$key = $basePath === '' ? ucfirst($file) : $basePath . '/' . $file;
|
||||
$value = $path . '/';
|
||||
// Ajouter la clé et la valeur au tableau associatif
|
||||
$subdirs[$key] = $value;
|
||||
|
@ -56,7 +56,7 @@
|
||||
</div>
|
||||
<div class="col6">
|
||||
<?php echo template::select('profilAddPath', $module::$sharePath, [
|
||||
'label' => 'Racine du dossier',
|
||||
'label' => 'Dossier',
|
||||
'class' => 'filemanager',
|
||||
]); ?>
|
||||
</div>
|
||||
|
@ -58,7 +58,7 @@
|
||||
</div>
|
||||
<div class="col6">
|
||||
<?php echo template::select('profilEditPath', $module::$sharePath, [
|
||||
'label' => 'Racine du dossier',
|
||||
'label' => 'Dossier',
|
||||
'class' => 'filemanager',
|
||||
'selected' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'folder', 'path'])
|
||||
]); ?>
|
||||
|
Loading…
Reference in New Issue
Block a user