From cb909e41de155e99ac1f0a1216d59195b46b4142 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Thu, 11 May 2023 19:07:34 +0200 Subject: [PATCH] =?UTF-8?q?libell=C3=A9s=20et=20liste=20de=20dossiers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/user/user.php | 6 +++--- core/module/user/view/profilAdd/profilAdd.php | 2 +- core/module/user/view/profilEdit/profilEdit.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/module/user/user.php b/core/module/user/user.php index f7172cac..5ee9532c 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -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; diff --git a/core/module/user/view/profilAdd/profilAdd.php b/core/module/user/view/profilAdd/profilAdd.php index 3aefebb2..3de06e7f 100644 --- a/core/module/user/view/profilAdd/profilAdd.php +++ b/core/module/user/view/profilAdd/profilAdd.php @@ -56,7 +56,7 @@
'Racine du dossier', + 'label' => 'Dossier', 'class' => 'filemanager', ]); ?>
diff --git a/core/module/user/view/profilEdit/profilEdit.php b/core/module/user/view/profilEdit/profilEdit.php index f60f1403..6bdc84be 100644 --- a/core/module/user/view/profilEdit/profilEdit.php +++ b/core/module/user/view/profilEdit/profilEdit.php @@ -58,7 +58,7 @@
'Racine du dossier', + 'label' => 'Dossier', 'class' => 'filemanager', 'selected' => $this->getData(['profil', $this->getUrl(2), $this->getUrl(3), 'folder', 'path']) ]); ?>