diff --git a/mod/kalvidassign/grade_submissions.php b/mod/kalvidassign/grade_submissions.php index 1acc8cd3..5d373eae 100644 --- a/mod/kalvidassign/grade_submissions.php +++ b/mod/kalvidassign/grade_submissions.php @@ -218,7 +218,7 @@ } } -$renderer->display_submissions_table($cm, $data->group_filter, $data->filter, $data->perpage, $data->quickgrade, $tifirst, $tilast, $page); +$renderer->display_submissions_table($cm, $data->perpage, $data->group_filter, $data->filter, $data->quickgrade, $tifirst, $tilast, $page); $prefform->set_data($data); $prefform->display(); diff --git a/mod/kalvidassign/renderer.php b/mod/kalvidassign/renderer.php index 7b71c906..dbbb56f1 100644 --- a/mod/kalvidassign/renderer.php +++ b/mod/kalvidassign/renderer.php @@ -706,17 +706,18 @@ public function display_instructor_buttons($cm, $userid) { /** * This function returns HTML markup to render a the submissions table + * * @param object $cm A course module object. + * @param int $perpage The number of submissions to display on a page. * @param int $groupfilter The group id to filter against. * @param string $filter Filter users who have submitted, submitted and graded or everyone. - * @param int $perpage The number of submissions to display on a page. * @param bool $quickgrade True if the quick grade table needs to be rendered, otherwsie false. * @param string $tifirst The first initial of the first name. * @param string $tilast The first initial of the last name. * @param int $page The current page to render. * @return string Returns HTML markup. */ - public function display_submissions_table($cm, $groupfilter = 0, $filter = 'all', $perpage, $quickgrade = false, $tifirst = '', $tilast = '', $page = 0) { + public function display_submissions_table($cm, $perpage, $groupfilter = 0, $filter = 'all', $quickgrade = false, $tifirst = '', $tilast = '', $page = 0) { global $DB, $COURSE, $USER;