Skip to content

Commit

Permalink
Removed internal check on rubref.php file
Browse files Browse the repository at this point in the history
See #30
Credit to Kevin Hipwell
  • Loading branch information
marcusgreen committed Oct 13, 2024
1 parent a7b9195 commit 7e70d2b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion classes/rubref.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion classes/rubric.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 1 addition & 3 deletions rubref.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 7e70d2b

Please sign in to comment.