Skip to content

Commit d10bd37

Browse files
committed
Add inline comments to help better understand the logic of the code
1 parent d113896 commit d10bd37

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

block_course_contents.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function get_content() {
147147
$title = null;
148148

149149
if (!empty($section->name)) {
150-
// If the section has explic title defined, it is used.
150+
// If the section has explicit title defined, it is used.
151151
$title = format_string($section->name, true, array('context' => $context));
152152

153153
} else if ($autotitle) {
@@ -186,6 +186,7 @@ public function get_content() {
186186

187187
}
188188

189+
// If we want to display the course link, display it before displaying the section 0.
189190
if (($i == 0) && ($displaycourselink)) {
190191
$sectionclass = 'section-item';
191192

0 commit comments

Comments
 (0)