mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
quiz results block: MDL-17137 block_quiz_results: manager links to group/overview are wrong.
Eloy told me exactly what to change. I don't know why he did not commit the fix himself!
This commit is contained in:
parent
9d07ec29dc
commit
3d05fc1365
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ class block_quiz_results extends block_base {
|
||||||
|
|
||||||
if ($nameformat = B_QUIZRESULTS_NAME_FORMAT_FULL) {
|
if ($nameformat = B_QUIZRESULTS_NAME_FORMAT_FULL) {
|
||||||
if (has_capability('moodle/course:managegroups', $context)) {
|
if (has_capability('moodle/course:managegroups', $context)) {
|
||||||
$grouplink = $CFG->wwwroot.'/group/overview.php?courseid='.$courseid.'&id=';
|
$grouplink = $CFG->wwwroot.'/group/overview.php?id='.$courseid.'&group=';
|
||||||
} else if (has_capability('moodle/course:viewparticipants', $context)) {
|
} else if (has_capability('moodle/course:viewparticipants', $context)) {
|
||||||
$grouplink = $CFG->wwwroot.'/user/index.php?id='.$courseid.'&group=';
|
$grouplink = $CFG->wwwroot.'/user/index.php?id='.$courseid.'&group=';
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue