diff --git a/classes/rubref.php b/classes/rubref.php index 13b1ab1..b88c31e 100644 --- a/classes/rubref.php +++ b/classes/rubref.php @@ -73,7 +73,7 @@ public function get_rows(array $data): string { * @param \cm_info $cm * @return array */ - public function get_data(\assign $assign, \cm_info $cm) : array { + public function get_data(\assign $assign, \cm_info $cm): array { global $DB; $sql = "SELECT grf.id as grfid, cm.course, asg.name as assignment,asg.grade as gradeoutof, diff --git a/classes/rubric.php b/classes/rubric.php index 4b07655..193bf63 100644 --- a/classes/rubric.php +++ b/classes/rubric.php @@ -73,7 +73,7 @@ public function get_rows(array $data): string { * @param \cm_info $cm * @return array */ - public function get_data(\assign $assign, \cm_info $cm) : array { + public function get_data(\assign $assign, \cm_info $cm): array { global $DB; $sql = "SELECT grf.id as grfid, cm.course, asg.name as assignment,asg.grade as gradeoutof, diff --git a/rubref.php b/rubref.php index a8b29f9..00fc4cc 100644 --- a/rubref.php +++ b/rubref.php @@ -18,12 +18,10 @@ * Exports an Excel spreadsheet of the grades in a rubref-graded assignment. * * @package report_advancedgrading - * @copyright 2022 Marcus Green + * @copyright 2024 Marcus Green * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ - defined('MOODLE_INTERNAL') || die(); - require(__DIR__ . '../../../config.php'); require_once(__DIR__ . '/../../report/advancedgrading/locallib.php'); require_once(__DIR__ . '/../../lib/excellib.class.php');