Merge branch 'MDL-54021-33' of git://github.com/mihailges/moodle into MOODLE_33_STABLE

This commit is contained in:
Damyon Wiese
2017-12-12 08:59:46 +08:00
@@ -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)) {