From 31fd89dca0190f8dfa8f9cef0f4495c5ec573e1c Mon Sep 17 00:00:00 2001 From: Thomas Fradet <t.fradet8@gmail.com> Date: Mon, 27 May 2019 11:02:55 +0200 Subject: [PATCH] bug divers --- CHANGELOG.md | 8 ++++++++ renderer.php | 8 ++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e63f7f..e9f845c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -235,6 +235,14 @@ Ajout d'un else à la condition pour que $date soit toujours instancié. [x] Solved. +#### 18 + +Notice sur renderer.php $course->sectionposition la propriété n'existe pas. + +Commentaire du code qui semble n'injecter qu'un span vide inutile avec une classe below qui n'existe pas dans le format de base Topic. + +[x] Solved. + ### Page principale du cours sans achèvement activé dans le cours Si l'achèvement d'activité n'est pas activé dans le cours. diff --git a/renderer.php b/renderer.php index 96b27f0..f20219a 100644 --- a/renderer.php +++ b/renderer.php @@ -855,10 +855,10 @@ public function print_iena_section_pages($course) } } //At this stage nothing is yet displayed except the icon: Your progress - if ($course->sectionposition == 1 and isset($htmlsection0)) { - if ($PAGE->user_is_editing()) - echo html_writer::tag('span', $htmlsection0, ['class' => 'below']); - } + // if ($course->sectionposition == 1 and isset($htmlsection0)) { + // if ($PAGE->user_is_editing()) + // echo html_writer::tag('span', $htmlsection0, ['class' => 'below']); + // } //Add the + and - at the end of the page to see which part of the code to really keep if ($PAGE->user_is_editing() and has_capability('moodle/course:update', $context)) { -- GitLab