mirror of
https://github.com/moodle/moodle.git
synced 2025-03-19 23:20:09 +01:00
MDL-56253 grade: have coursemodule name pass filters.
This commit is contained in:
parent
4275ea4a43
commit
c6c480f786
@ -185,8 +185,8 @@ class grading_manager {
|
||||
} else if ($this->get_context()->contextlevel >= CONTEXT_COURSE) {
|
||||
list($context, $course, $cm) = get_context_info_array($this->get_context()->id);
|
||||
|
||||
if (strval($cm->name) !== '') {
|
||||
$title = $cm->name;
|
||||
if ($cm && strval($cm->name) !== '') {
|
||||
$title = format_string($cm->name, true, array('context' => $context));
|
||||
} else {
|
||||
debugging('Gradable areas are currently supported at the course module level only', DEBUG_DEVELOPER);
|
||||
$title = $this->get_component();
|
||||
|
Loading…
x
Reference in New Issue
Block a user