From 75dbae7cc6043e593924ef89bd6ff8f01733fef9 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Wed, 4 Sep 2024 09:27:27 +0200 Subject: [PATCH] commentaire et renomme resource --- core/module/course/course.php | 5 +++-- core/module/course/{ressource => resource}/style.css | 0 2 files changed, 3 insertions(+), 2 deletions(-) rename core/module/course/{ressource => resource}/style.css (100%) diff --git a/core/module/course/course.php b/core/module/course/course.php index 54c4e83..42cf728 100644 --- a/core/module/course/course.php +++ b/core/module/course/course.php @@ -1823,7 +1823,7 @@ class course extends common file_put_contents($path . '/export/' . $courseId . '_export.html', $datas, LOCK_EX); // Copie une feuille de style - copy('core/module/course/ressource/style.css', $path . 'export/style.css'); + copy('core/module/course/resource/style.css', $path . 'export/style.css'); // Valeurs en sortie $this->addOutput([ @@ -1842,6 +1842,7 @@ class course extends common } + // Fonction utilisé par l'export en html pour corriger les URL des ressources private function processResources(&$pageContent, $regex, &$resources) { preg_match_all($regex, $pageContent, $matches); @@ -1859,7 +1860,7 @@ class course extends common } /** - * Sauvegarde d'un cours sans option + * Récupération d'un espace sans option */ public function restore() diff --git a/core/module/course/ressource/style.css b/core/module/course/resource/style.css similarity index 100% rename from core/module/course/ressource/style.css rename to core/module/course/resource/style.css