Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iena
iena-course-format
Commits
31fd89dc
Commit
31fd89dc
authored
May 27, 2019
by
Thomas Fradet
Browse files
bug divers
parent
d7e0f7dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
31fd89dc
...
...
@@ -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.
...
...
renderer.php
View file @
31fd89dc
...
...
@@ -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
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment