Skip to content

Commit cc13198

Browse files
committed
improve comments in php code
1 parent 1b2cad3 commit cc13198

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

locallib.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ function theme_boost_union_get_course_related_hints() {
5252

5353
// The general hint will only be shown when the course is viewed.
5454
if ($PAGE->url->compare(new moodle_url('/course/view.php'), URL_MATCH_BASE)) {
55-
// Prepare template context.
55+
// Use the default hint text for hidden courses.
5656
$hintcoursehiddentext = get_string('showhintcoursehiddengeneral', 'theme_boost_union');
5757
}
5858

5959
// If the setting showhintcoursehiddennotifications is set too and we view a forum (e.g. announcement) within a hidden
6060
// course a hint will be shown that no notifications via forums will be sent out to students.
6161
if (get_config('theme_boost_union', 'showhintforumnotifications') == THEME_BOOST_UNION_SETTING_SELECT_YES
6262
&& $PAGE->url->compare(new moodle_url('/mod/forum/view.php'), URL_MATCH_BASE)) {
63-
63+
// Use the specialized hint text for hidden courses on forum pages.
6464
$hintcoursehiddentext = get_string('showhintforumnotifications', 'theme_boost_union');
6565
}
6666

0 commit comments

Comments
 (0)