Skip to content
Snippets Groups Projects

Resolve "Bobologie 1"

Merged Jean-François Lemoine (Paris Nanterre) requested to merge 1-bobologie-1 into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -533,7 +533,7 @@ foreach ($htmlsection as $section) {
@@ -533,7 +533,7 @@ foreach ($htmlsection as $section) {
}
}
$titre = $nameSection[$i];
$titre = $nameSection[$i];
$sectionIntro = $introSection[$i];
$sectionIntro = isset($introSection[$i]) ? $introSection[$i] : '';
//If section is hidden continue
//If section is hidden continue
if ($titre == null && !(has_capability('moodle/course:update', $context = context_course::instance($COURSE->id), $USER->id))) {
if ($titre == null && !(has_capability('moodle/course:update', $context = context_course::instance($COURSE->id), $USER->id))) {
$i++;
$i++;
@@ -777,7 +777,7 @@ public function print_iena_section_pages($course)
@@ -777,7 +777,7 @@ public function print_iena_section_pages($course)
// }
// }
/* if is not editing verify the rules to display the sections */
/* if is not editing verify the rules to display the sections */
if (!$PAGE->user_is_editing() && (!has_capability('moodle/course:viewhiddensections', $context = context_course::instance($course->id), $USER->id))) {
if (!$PAGE->user_is_editing() && (!has_capability('moodle/course:viewhiddensections', $context = context_course::instance($course->id), $USER->id))) {
if ($course->hiddensections && !(int)$thissection->visible) {
if (isset($course->hiddensections) && $course->hiddensections && !(int)$thissection->visible) {
continue;
continue;
}
}
if (!$thissection->available && !empty($thissection->availableinfo)) {
if (!$thissection->available && !empty($thissection->availableinfo)) {
Loading