Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'MDL-34705_22' of git://github.com/timhunt/moodle into M…

…OODLE_22_STABLE
  • Loading branch information...
commit b02ff428decdddea4fcb102fab941b77bfa427df 2 parents 77c3dbf + f66ad4a
Dan Poltawski danpoltawski authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 admin/roles/usersroles.php
5 admin/roles/usersroles.php
View
@@ -166,7 +166,8 @@ function print_report_tree($contextid, $contexts, $systemcontext, $fullname) {
$context = context::instance_by_id($contextid);
// Print the context name.
- echo $OUTPUT->heading($context->get_context_name(), 4, 'contextname');
+ echo $OUTPUT->heading(html_writer::link($context->get_url(), $context->get_context_name()),
+ 4, 'contextname');
// If there are any role assignments here, print them.
foreach ($contexts[$contextid]->roleassignments as $ra) {
@@ -189,7 +190,7 @@ function print_report_tree($contextid, $contexts, $systemcontext, $fullname) {
}
$a = new stdClass;
$a->fullname = $fullname;
- $a->contextlevel = get_contextlevel_name($context->contextlevel);
+ $a->contextlevel = $context->get_level_name();
if ($context->contextlevel == CONTEXT_SYSTEM) {
$strgoto = get_string('gotoassignsystemroles', 'role');
$strcheck = get_string('checksystempermissionsfor', 'role', $a);
Please sign in to comment.
Something went wrong with that request. Please try again.