Skip to content

Commit

Permalink
Minor coding style correction
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviervalentin committed May 30, 2024
1 parent 1f175b9 commit 1fb090d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions admin_dashboard/orphaned_submissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
$delete = $targetassign->remove_submission($userorphan->id);
}
// Now that files are deleted, delete report entry.
$purgereport = $DB->delete_records('report_coursemanager_orphans', ['cmid' => $instance, 'course' => $course, ]);
$purgereport = $DB->delete_records('report_coursemanager_orphans', ['cmid' => $instance, 'course' => $course]);
$returnurl = "orphaned_submissions.php";
redirect($returnurl);
exit();
Expand Down Expand Up @@ -142,8 +142,8 @@
$selectedassigns = array_slice($listassigns, $page * $perpage, $perpage);
foreach ($selectedassigns as $assign) {
$cm = get_coursemodule_from_id('assign', $assign->cmid);
$course = $DB->get_record('course', array('id' => $assign->course));
// $context = context_module::instance($cm->id);
$course = $DB->get_record('course', ['id' => $assign->course]);

$row = [];
$row[] = html_writer::link("/course/view.php?id=".$assign->course, $course->fullname);
$row[] = html_writer::link("/mod/assign/view.php?id=".$assign->cmid, $cm->name);
Expand All @@ -157,7 +157,7 @@

echo html_writer::table($table);

$baseurl = new moodle_url('/report/coursemanager/admin_dashboard/orphaned_submissions.php', array('perpage' => $perpage));
$baseurl = new moodle_url('/report/coursemanager/admin_dashboard/orphaned_submissions.php', ['perpage' => $perpage]);
echo $OUTPUT->paging_bar(count($listassigns), $page, $perpage, $baseurl);

echo $OUTPUT->footer();

0 comments on commit 1fb090d

Please sign in to comment.