MDL-42100 tool_capability: fixed incorrect links

This commit is contained in:
Mark Nelson 2013-11-13 00:20:28 -08:00
parent d214057cad
commit 8eb2ea83d2

View File

@ -87,7 +87,7 @@ class tool_capability_renderer extends plugin_renderer_base {
$table->attributes['class'] = 'comparisontable';
$table->head = array(' ');
foreach ($roles as $role) {
$url = new moodle_url('/admin/roles/override.php', array('contextid' => $contextid, 'roleid' => $role->id));
$url = new moodle_url('/admin/roles/define.php', array('action' => 'view', 'roleid' => $role->id));
$table->head[] = html_writer::div(html_writer::link($url, $role->localname));
}
$table->data = array();