Commit 551e64cc authored by Daniel Kosinski's avatar Daniel Kosinski
Browse files

MDL-48456 course: Increase timeout when deleting all courses in category

parent 06122e46
......@@ -1562,6 +1562,9 @@ class coursecat implements renderable, cacheable_object, IteratorAggregate {
require_once($CFG->libdir.'/questionlib.php');
require_once($CFG->dirroot.'/cohort/lib.php');
// Make sure we won't timeout when deleting a lot of courses.
$settimeout = core_php_time_limit::raise('0');
$deletedcourses = array();
// Get children. Note, we don't want to use cache here because it would be rebuilt too often.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment