diff --git a/core/module/user/view/edit/edit.php b/core/module/user/view/edit/edit.php
index 7e243e20..7d5a3523 100644
--- a/core/module/user/view/edit/edit.php
+++ b/core/module/user/view/edit/edit.php
@@ -65,7 +65,7 @@
]); ?>
'Langue',
- 'selected' => $this->getData(['user', $this->getUser('id'), 'language'])
+ 'selected' => $this->getData(['user', $this->getUrl(2), 'language'])
]); ?>
@@ -119,14 +119,14 @@
id="userEditGroupProfil">
'Profil',
- 'selected' => $this->getData(['user', $this->getUser('id'), 'profil'])
+ 'selected' => $this->getData(['user', $this->getUrl(2), 'profil'])
]); ?>
'Profil',
- 'selected' => $this->getData(['user', $this->getUser('id'), 'profil'])
+ 'selected' => $this->getData(['user', $this->getUrl(2), 'profil'])
]); ?>
diff --git a/core/vendor/filemanager/config/config.php b/core/vendor/filemanager/config/config.php
index 9c6b9206..06339a45 100644
--- a/core/vendor/filemanager/config/config.php
+++ b/core/vendor/filemanager/config/config.php
@@ -20,11 +20,11 @@ setlocale(LC_CTYPE, $lang);
/* Lecture du groupe de l'utilisateur connecté pour attribuer les droits et les dossiers */
$userId = $_COOKIE['ZWII_USER_ID'];
$u = json_decode(file_get_contents('../../../site/data/user.json'), true);
-$g = json_decode(file_get_contents('../../../site/data/group.json'), true);
+$g = json_decode(file_get_contents('../../../site/data/profil.json'), true);
$group = $u['user'][$userId]['group'];
-$file = $g['group'][$group]['file'];
-$folder = $g['group'][$group]['folder'];
-$uploadDir = $g['group'][$group]['folder']['path'];
+$file = $g['profil'][$group]['file'];
+$folder = $g['profil'][$group]['folder'];
+$uploadDir = $g['profil'][$group]['folder']['path'];
$currentPath = '../../.' . $uploadDir;
if (!is_dir($currentPath ))
mkdir($currentPath );