Skip to content

Commit

Permalink
CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartlamour committed Nov 21, 2024
1 parent efa754c commit fd52f6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions block_my_feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

defined('MOODLE_INTERNAL') || die();

require_once(__DIR__ .'/mod/assign/locallib.php');

/**
* Block definition class for the block_my_feedback plugin.
*
Expand Down Expand Up @@ -165,6 +163,7 @@ public function fetch_marking(stdClass $user): ?array {
* @param stdClass $assess
*/
public function get_mod_data($mod, $assess) {
global $CFG;
// Mods have different feilds for due date, and require marking.
switch ($mod->modname) {
case 'assign':
Expand All @@ -180,6 +179,7 @@ public function get_mod_data($mod, $assess) {
$assess->duedate = date('jS F y', $duedate);

// Require marking.
require_once($CFG->dirroot.'/mod/assign/locallib.php');
$context = context_module::instance($mod->id);
$assignment = new assign($context, $mod, $mod->course);
$assess->requiremarking = $assignment->count_submissions_need_grading();
Expand Down

0 comments on commit fd52f6d

Please sign in to comment.