Skip to content
Snippets Groups Projects
Commit 31fd89dc authored by Thomas Fradet's avatar Thomas Fradet
Browse files

bug divers

parent d7e0f7dd
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment