Skip to content

Commit

Permalink
MDL-54021 blocks: Course completion block lang problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihail Geshoski committed Dec 8, 2017
1 parent 109aa07 commit d381732
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion completion/criteria/completion_criteria_activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,8 @@ public function get_details($completion) {
$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)) {
Expand Down

0 comments on commit d381732

Please sign in to comment.