MDL-66049 workshop: Fix the fully qualified class name

Because of the missing slash, the class 'workshop' was not found in the
current namespace and the cron failed to work.
This commit is contained in:
David Mudrák
2019-07-01 14:48:45 +02:00
parent 7ec1804935
commit 2bb03c59e8
2 changed files with 77 additions and 1 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ class cron_task extends \core\task\scheduled_task {
$cm = get_coursemodule_from_instance('workshop', $workshop->id, $workshop->course, false, MUST_EXIST);
$course = $DB->get_record('course', ['id' => $cm->course], '*', MUST_EXIST);
$workshop = new \workshop($workshop, $cm, $course);
$workshop->switch_phase(workshop::PHASE_ASSESSMENT);
$workshop->switch_phase(\workshop::PHASE_ASSESSMENT);
$params = [
'objectid' => $workshop->id,