Merge branch 'MDL-86374-500' of https://github.com/paulholden/moodle into MOODLE_500_STABLE
This commit is contained in:
@@ -276,8 +276,6 @@ class coursestructure implements \renderable, \templatable {
|
||||
return [];
|
||||
}
|
||||
|
||||
$modulename = get_string('modulename', $cm->modname);
|
||||
|
||||
$dataactivity = [
|
||||
'isactivity' => true,
|
||||
'indelegated' => $indelegated,
|
||||
@@ -289,9 +287,9 @@ class coursestructure implements \renderable, \templatable {
|
||||
->set_icon_size(iconsize::SIZE4);
|
||||
|
||||
$dataactivity['activitycolumn'] = [
|
||||
'activityicon' => $output->render($activityicon),
|
||||
'link' => "$CFG->wwwroot/mod/$cm->modname/view.php?id=$cm->id",
|
||||
'text' => $cm->name,
|
||||
'activityicon' => $output->render($activityicon),
|
||||
'link' => "$CFG->wwwroot/mod/$cm->modname/view.php?id=$cm->id",
|
||||
'text' => $cm->get_formatted_name(),
|
||||
];
|
||||
return $dataactivity;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user