MDL-53154 course: Raise PHP time limit when deleting a course

This commit is contained in:
Jun Pataleta 2016-02-18 10:10:01 +08:00
parent 2f45a11ac4
commit 41d6a25a19

View File

@ -61,6 +61,8 @@ if ($delete === md5($course->timemodified)) {
echo $OUTPUT->header();
echo $OUTPUT->heading($strdeletingcourse);
// This might take a while. Raise the execution time limit.
core_php_time_limit::raise();
// We do this here because it spits out feedback as it goes.
delete_course($course);
echo $OUTPUT->heading( get_string("deletedcourse", "", $courseshortname) );