From 113e3f283f968fc54083f636439948bb6daa70bc Mon Sep 17 00:00:00 2001 From: Stephan Robotta Date: Mon, 14 Oct 2024 13:38:15 +0200 Subject: [PATCH] Additional memory increasements because of runtime issues. --- edit_instance.php | 3 +++ questionnaire.php | 3 +++ report.php | 6 +++--- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/edit_instance.php b/edit_instance.php index c4e8206..bb0336a 100644 --- a/edit_instance.php +++ b/edit_instance.php @@ -49,6 +49,9 @@ require_login($course, true, $cm); +// Quick hack for issue #43. +ini_set('memory_limit', '256M'); + $instancerepository = new instance_repository(); if (!$instance = $instancerepository->get_by_id($cm->instance)) { diff --git a/questionnaire.php b/questionnaire.php index c97b003..c337379 100644 --- a/questionnaire.php +++ b/questionnaire.php @@ -45,6 +45,9 @@ require_login($course, true, $cm); +// Quick hack for issue #43. +ini_set('memory_limit', '256M'); + $context = context_module::instance($cm->id); $instancerepository = new instance_repository(); $submissionrepository = new submission_repository(); diff --git a/report.php b/report.php index c9b2e6f..0f12c0c 100644 --- a/report.php +++ b/report.php @@ -36,6 +36,9 @@ require_login($course, true, $cm); +// Quick hack for issue #43. +ini_set('memory_limit', '256M'); + $context = context_module::instance($cm->id); $instancerepo = new instance_repository(); @@ -51,9 +54,6 @@ throw new moodle_exception('errorreportnotavailable', 'mod_verbalfeedback'); } -// Quick hack for issue #43. -ini_set('memory_limit', '256M'); - $PAGE->set_context($context); $PAGE->set_cm($cm, $course); $PAGE->set_pagelayout('incourse');