From 9ae150f3aa0331261bf8970a6cab55d61a27854b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Wed, 22 Jan 2025 15:35:26 +0100 Subject: [PATCH] =?UTF-8?q?Users=20par=20Nom=20puis=20Pr=C3=A9nom?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/course/course.php | 2 +- core/module/user/user.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/module/course/course.php b/core/module/course/course.php index fb6a08f..e1ee033 100644 --- a/core/module/course/course.php +++ b/core/module/course/course.php @@ -736,7 +736,7 @@ class course extends common } self::$courseUsers[] = [ //$userId, - $this->getData(['user', $userId, 'firstname']) . ' ' . $this->getData(['user', $userId, 'lastname']), + sprintf('%s %s',$this->getData(['user', $userId, 'lastname']), $this->getData(['user', $userId, 'firstname'])), array_key_exists('lastPageView', $userValue) && isset($pages[$userValue['lastPageView']]['title']) ? $pages[$userValue['lastPageView']]['title'] : '', diff --git a/core/module/user/user.php b/core/module/user/user.php index 0a7204a..da511d8 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -685,7 +685,7 @@ class user extends common // Formatage de la liste self::$users[] = [ //$userId, - $this->getData(['user', $userId, 'firstname']) . ' ' . $userLastNames, + sprintf('%s %s',$userLastNames, $this->getData(['user', $userId, 'firstname'])), helper::translate(self::$groups[(int) $this->getData(['user', $userId, 'group'])]), empty($this->getData(['profil', $this->getData(['user', $userId, 'group']), $this->getData(['user', $userId, 'profil']), 'name'])) ? helper::translate(self::$groups[(int) $this->getData(['user', $userId, 'group'])])