From 4b6bb4630bdff74b467a4249b8e30c6b05970f64 Mon Sep 17 00:00:00 2001 From: Stephan Robotta Date: Thu, 17 Oct 2024 18:29:13 +0200 Subject: [PATCH] Remove quick hack to increase memory limit. --- edit_instance.php | 3 --- questionnaire.php | 3 --- report.php | 3 --- report_download.php | 3 --- view.php | 3 --- 5 files changed, 15 deletions(-) diff --git a/edit_instance.php b/edit_instance.php index bb0336a..c4e8206 100644 --- a/edit_instance.php +++ b/edit_instance.php @@ -49,9 +49,6 @@ 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 c337379..c97b003 100644 --- a/questionnaire.php +++ b/questionnaire.php @@ -45,9 +45,6 @@ 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 0f12c0c..5c55592 100644 --- a/report.php +++ b/report.php @@ -36,9 +36,6 @@ 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(); diff --git a/report_download.php b/report_download.php index 8dc9c3d..7be2174 100644 --- a/report_download.php +++ b/report_download.php @@ -54,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'); diff --git a/view.php b/view.php index 220979a..86bf48b 100644 --- a/view.php +++ b/view.php @@ -39,9 +39,6 @@ $instancerepository = new instance_repository(); -// Quick hack for issue #43. -ini_set('memory_limit', '256M'); - $context = context_module::instance($cm->id); $instance = $instancerepository->get_by_id($cm->instance);