MDL-54021 blocks: Course completion block lang problem

This commit is contained in:
Mihail Geshoski 2017-12-05 10:21:36 +08:00
parent 109aa07648
commit d381732329

View File

@ -279,7 +279,8 @@ class completion_criteria_activity extends completion_criteria {
$details['requirement'][] = get_string('markingyourselfcomplete', 'completion');
} elseif ($cm->completion == COMPLETION_TRACKING_AUTOMATIC) {
if ($cm->completionview) {
$details['requirement'][] = get_string('viewingactivity', 'completion', $this->module);
$modulename = core_text::strtolower(get_string('modulename', $this->module));
$details['requirement'][] = get_string('viewingactivity', 'completion', $modulename);
}
if (!is_null($cm->completiongradeitemnumber)) {