Commit 34adfcb4 authored by Damyon Wiese's avatar Damyon Wiese
Browse files

Merge branch 'MDL-54021-master' of git://github.com/mihailges/moodle

parents 807ba44c d3817323
......@@ -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)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment