Skip to content

Commit

Permalink
Quick fix for memory issue
Browse files Browse the repository at this point in the history
  • Loading branch information
srobotta committed Aug 15, 2024
1 parent 4414b35 commit 96c9c70
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions report.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@
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
3 changes: 3 additions & 0 deletions report_download.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
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
3 changes: 3 additions & 0 deletions view.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@

$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);
Expand Down

0 comments on commit 96c9c70

Please sign in to comment.