Skip to content

Commit

Permalink
Merge pull request #59 from leonstr/CONTRIB-9504-viewurl
Browse files Browse the repository at this point in the history
CONTRIB-9504 Fix Undefined constant "viewurl"
  • Loading branch information
bostelm authored Jul 25, 2024
2 parents 81203fd + 70162ed commit 6d9fb30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion teacherview.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function scheduler_print_schedulebox(scheduler $scheduler, $studentid, $groupid
$actionurl = new moodle_url($baseurl, array('what' => 'addslot'));

if (!$scheduler->has_available_teachers()) {
throw new moodle_exception('needteachers', 'scheduler', viewurl);
throw new moodle_exception('needteachers', 'scheduler', $viewurl);
}

$mform = new scheduler_editslot_form($actionurl, $scheduler, $cm, $groupsicansee);
Expand Down

0 comments on commit 6d9fb30

Please sign in to comment.