Skip to content

Commit

Permalink
MDL-53936 reports: State default index page explicitly in pagination url
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaboesch committed Sep 1, 2017
1 parent b3cfb01 commit 30375ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions report/completion/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
echo $OUTPUT->header();

// Handle groups (if enabled)
groups_print_course_menu($course, $CFG->wwwroot.'/report/completion/?course='.$course->id);
groups_print_course_menu($course, $CFG->wwwroot.'/report/completion/index.php?course='.$course->id);
}

if ($sifirst !== 'all') {
Expand Down Expand Up @@ -222,7 +222,7 @@
}

// Build link for paging
$link = $CFG->wwwroot.'/report/completion/?course='.$course->id;
$link = $CFG->wwwroot.'/report/completion/index.php?course='.$course->id;
if (strlen($sort)) {
$link .= '&sort='.$sort;
}
Expand Down Expand Up @@ -428,10 +428,10 @@

if ($firstnamesort) {
print
get_string('firstname')." / <a href=\"./?course={$course->id}{$sistring}\">".
get_string('firstname')." / <a href=\"./index.php?course={$course->id}{$sistring}\">".
get_string('lastname').'</a>';
} else {
print "<a href=\"./?course={$course->id}&amp;sort=firstname{$sistring}\">".
print "<a href=\"./index.php?course={$course->id}&amp;sort=firstname{$sistring}\">".
get_string('firstname').'</a> / '.
get_string('lastname');
}
Expand Down

0 comments on commit 30375ee

Please sign in to comment.