Skip to content

Commit

Permalink
Additional memory increasements because of runtime issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
srobotta committed Oct 14, 2024
1 parent f2e7ebc commit 113e3f2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions edit_instance.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
3 changes: 3 additions & 0 deletions questionnaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
6 changes: 3 additions & 3 deletions report.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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');
Expand Down

0 comments on commit 113e3f2

Please sign in to comment.