Skip to content

Commit 179eecc

Browse files
committed
Merge branch 'master' into moodle_500_fix_subsection_navigation_nodes
2 parents a777a68 + b297ae2 commit 179eecc

35 files changed

+709
-330
lines changed

_course_changenumsections.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777

7878
if (false) { // CHANGED: Don't use numsections.
7979
$desirednumsections = $courseformatoptions['numsections'] + 1;
80-
} else if (course_get_format($course)->uses_sections() && $insertsection !== null) {
80+
} else if (course_get_format($course)->uses_sections() && ($insertsection !== null)) {
8181
// Count the sections in the course.
8282
$desirednumsections = $lastsectionnumber + $numsections;
8383
}
@@ -113,7 +113,7 @@
113113
// Overwriting returnurl to be consistent with block below even though we never get here.
114114
$returnurl = course_get_url($course);
115115
$returnurl->set_anchor('changenumsections');
116-
} else if (course_get_format($course)->uses_sections() && $insertsection !== null) {
116+
} else if (course_get_format($course)->uses_sections() && ($insertsection !== null)) {
117117
if (true) {
118118
// CHANGED: Usually Moodle would not check for the capability to move sections when adding a section to the end.
119119
// Since "the end" seems a less meaningful distinction for a heirarchy than for a list, this special case is omitted.

amd/build/courseformat/content.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

amd/build/courseformat/content.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)