From e3eb61244d8147087e525ade0579da7ea356d71c Mon Sep 17 00:00:00 2001 From: sam_marshall Date: Fri, 3 Nov 2006 14:39:19 +0000 Subject: [PATCH] MDL-7344 Change 'import child course' timeout to 180 seconds per course because role creation takes a while for thousands of users. (Merge from STABLE) --- course/importstudents.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/course/importstudents.php b/course/importstudents.php index 275f1bd428..91f6117355 100644 --- a/course/importstudents.php +++ b/course/importstudents.php @@ -62,14 +62,14 @@ $timestart = $timeend = 0; foreach ($frm->addselect as $addcourse) { $addcourse = clean_param($addcourse, PARAM_INT); - set_time_limit(10); + set_time_limit(180); if (!add_to_metacourse($course->id,$addcourse)) { error("Could not add the selected course to this meta course!"); } } } else if ($remove and !empty($frm->removeselect) and confirm_sesskey()) { foreach ($frm->removeselect as $removecourse) { - set_time_limit(10); + set_time_limit(180); $removecourse = clean_param($removecourse, PARAM_INT); if (! remove_from_metacourse($course->id,$removecourse)) { error("Could not remove the selected course from this meta course!"); -- 2.39.5