Merge branch 'MDL-58807-activities-result-title-multilang' of https://github.com/lucaboesch/moodle

This commit is contained in:
Jun Pataleta 2017-05-05 12:09:29 +08:00
commit 33673d89e5

View File

@ -682,7 +682,7 @@ class block_activity_results extends block_base {
$o = html_writer::start_tag('h3');
$o .= html_writer::link(new moodle_url('/mod/'.$activity->itemmodule.'/view.php',
array('id' => $cm->id)), $activity->itemname);
array('id' => $cm->id)), format_string(($activity->itemname), true, ['context' => context_module::instance($cm->id)]));
$o .= html_writer::end_tag('h3');
return $o;
}
@ -699,4 +699,4 @@ class block_activity_results extends block_base {
return $scale;
}
}
}