MDL-53936 reports: State default index page explicitly in pagination url
This commit is contained in:
@@ -160,7 +160,7 @@ if ($csv) {
|
||||
$PAGE->requires->js_function_call('textrotate_init', null, true);
|
||||
|
||||
// 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);
|
||||
}
|
||||
|
||||
// Generate where clause
|
||||
@@ -206,7 +206,7 @@ if ($total) {
|
||||
}
|
||||
|
||||
// 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;
|
||||
}
|
||||
@@ -437,10 +437,10 @@ if (!$csv) {
|
||||
|
||||
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}&sort=firstname{$sistring}\">".
|
||||
print "<a href=\"./index.php?course={$course->id}&sort=firstname{$sistring}\">".
|
||||
get_string('firstname').'</a> / '.
|
||||
get_string('lastname');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user