commentaire

This commit is contained in:
Fred Tempez 2023-10-04 18:01:04 +02:00
parent e07080b682
commit 0cc6a4adb3

View File

@ -247,7 +247,10 @@ class course extends common
]); ]);
// Suppression // Suppression
} else { } else {
// Active l'accueil
self::$siteContent = 'home'; self::$siteContent = 'home';
// ET efface la structure
if (is_dir(self::DATA_DIR . $courseId)) { if (is_dir(self::DATA_DIR . $courseId)) {
$success = $this->deleteDir(self::DATA_DIR . $courseId); $success = $this->deleteDir(self::DATA_DIR . $courseId);
$this->deleteData(['course', $courseId]); $this->deleteData(['course', $courseId]);