Skip to content

Commit

Permalink
MDL-69993 output: correct navigation node type for user reports.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulholden committed Oct 23, 2020
1 parent 3ba1073 commit b14cca8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pagelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2051,7 +2051,8 @@ public function add_report_nodes($userid, $nodeinfo) {
$reportnode = $myprofilenode->add(get_string('reports'));
}
// Finally add the report to the navigation tree.
$reportnode->add($nodeinfo['name'], $nodeinfo['url'], navigation_node::TYPE_COURSE);
$reportnode->add($nodeinfo['name'], $nodeinfo['url'], navigation_node::TYPE_CUSTOM, null, null,
new pix_icon('i/report', $nodeinfo['name']));
}

/**
Expand Down

0 comments on commit b14cca8

Please sign in to comment.