mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
MDL-53154 course: Raise PHP time limit when deleting a course
This commit is contained in:
parent
2f45a11ac4
commit
41d6a25a19
@ -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) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user