From d76b0295df4ebbc53ad6b76c0818a9d4d872ae77 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sat, 7 Oct 2023 18:03:13 +0200 Subject: [PATCH] V25 enrol dateVisit --- core/class/router.class.php | 2 +- core/core.php | 2 +- core/module/course/course.php | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/class/router.class.php b/core/class/router.class.php index df37bd6..4a22e03 100644 --- a/core/class/router.class.php +++ b/core/class/router.class.php @@ -474,7 +474,7 @@ class core extends common in_array($this->getUrl(0), array_keys($this->getData(['page']))) ) { $this->setData(['enrolment', self::$siteContent, $this->getUser('id'), 'lastPageId', $this->getUrl(0)]); - $this->setData(['enrolment', self::$siteContent, $this->getUser('id'), 'lastDateVisited', time()]); + $this->setData(['enrolment', self::$siteContent, $this->getUser('id'), 'dateVisit', time()]); } // Journalisation diff --git a/core/core.php b/core/core.php index 29cccbe..e10cb9c 100644 --- a/core/core.php +++ b/core/core.php @@ -50,7 +50,7 @@ class common const ACCESS_TIMER = 1800; // Numéro de version - const ZWII_VERSION = '1.0.24'; + const ZWII_VERSION = '1.0.25'; // URL autoupdate const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/lms/'; diff --git a/core/module/course/course.php b/core/module/course/course.php index 9be9783..59c9ffc 100644 --- a/core/module/course/course.php +++ b/core/module/course/course.php @@ -368,10 +368,10 @@ class course extends common $userId, $this->getData(['user', $userId, 'firstname']) . ' ' . $this->getData(['user', $userId, 'lastname']), $userValue['lastPageId'], - helper::dateUTF8('%d %B %Y - %H:%M', $userValue['lastDateVisited']), + helper::dateUTF8('%d %B %Y - %H:%M', $userValue['dateVisit']), template::button('courseDelete' . $userId, [ 'class' => 'categoryDelete buttonRed', - 'href' => helper::baseUrl() . 'course/categoryDelete/' . $userId, + 'href' => helper::baseUrl() . 'course/userDelete/' . $userId, 'value' => template::ico('trash'), 'help' => 'Supprimer' ]) @@ -600,7 +600,7 @@ class course extends common $userId, [ 'lastPageId' => '', - 'lastVisit' => 0 + 'dateVisit' => 0 ] ]); }