From 1c1969dc4984605bb2291c41d1922e6de0a06a36 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Wed, 3 Jan 2024 15:20:05 +0100 Subject: [PATCH] Revert "1403 move enrolment database in course folder" This reverts commit c6364183afcd2d1dba827cf60014667341313cc5. --- core/core.php | 4 ++-- core/module/course/course.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/core.php b/core/core.php index 4900192..0610673 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.4.03'; + const ZWII_VERSION = '1.4.02'; // URL autoupdate const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/campus-update/raw/branch/master/'; @@ -223,6 +223,7 @@ class common 'user' => '', 'language' => '', 'profil' => '', + 'enrolment' => '', 'category' => '', ]; @@ -230,7 +231,6 @@ class common 'page' => '', 'module' => '', 'theme' => '', - 'enrolment' => '', ]; public static $fontsWebSafe = [ diff --git a/core/module/course/course.php b/core/module/course/course.php index c85d8f8..08a4339 100644 --- a/core/module/course/course.php +++ b/core/module/course/course.php @@ -309,7 +309,7 @@ class course extends common } // Dossier du gestionnaire de fichier - if (is_dir(self::FILE_DIR . 'source/' . $courseId)) { + if (is_dir(self::FILE_DIR . 'source/' . $courseId)) { $this->deleteDir(self::FILE_DIR . 'source/' . $courseId); }