Skip to content
Permalink
Browse files

MDL-7344 Change 'import child course' timeout to 180 seconds per cour…

…se because role creation takes a while for thousands of users.
  • Loading branch information...
sam_marshall
sam_marshall committed Nov 3, 2006
1 parent 1ab5019 commit ed2bc331548e01981f95d2ff96489363c65406bb
Showing with 2 additions and 2 deletions.
  1. +2 −2 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!");

0 comments on commit ed2bc33

Please sign in to comment.
You can’t perform that action at this time.